Improve bytecode generation.

This commit is contained in:
James Roseborough
2010-08-11 14:23:59 +00:00
parent a1e8df5a11
commit 3d4a3dbb65
3 changed files with 82 additions and 74 deletions

View File

@@ -469,5 +469,16 @@ public class FragmentsTest extends TestSuite {
"return f(), g(8,9)\n"+
"\n" );
}
public void testLoadBool() {
runFragment( LuaValue.NONE,
"print( type(foo)=='string' )\n"+
"local a,b\n"+
"if print() then\n"+
" b = function()\n"+
" return a\n"+
" end\n"+
"end\n" );
}
}
}