Tighten type checking rules on concatenation operator.
This commit is contained in:
@@ -325,8 +325,7 @@ public class LValue {
|
|||||||
|
|
||||||
/** Concatenate this value to a ByteArrayOutputStream */
|
/** Concatenate this value to a ByteArrayOutputStream */
|
||||||
public void luaConcatTo(ByteArrayOutputStream baos) {
|
public void luaConcatTo(ByteArrayOutputStream baos) {
|
||||||
byte[] b = toJavaString().getBytes();
|
throw new LuaErrorException( "attempt to concatenate "+luaGetTypeName() );
|
||||||
baos.write(b,0,b.length);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Return true if this is a lua string, meaning it is
|
/** Return true if this is a lua string, meaning it is
|
||||||
|
|||||||
Reference in New Issue
Block a user