Report errors about closures as function expected

This commit is contained in:
Enrico Horn
2021-07-13 22:50:28 +02:00
parent 23ae7cdc06
commit 99bd46876e

View File

@@ -956,7 +956,7 @@ abstract public class LuaValue extends Varargs {
* @see #isclosure() * @see #isclosure()
* @see #TFUNCTION * @see #TFUNCTION
*/ */
public LuaClosure checkclosure() { argerror("closure"); return null; } public LuaClosure checkclosure() { argerror("function"); return null; }
/** /**
* Check that the value is numeric and return the value as a double, or * Check that the value is numeric and return the value as a double, or