Improve bytecode generation.

This commit is contained in:
James Roseborough
2010-08-02 18:28:40 +00:00
parent ddd0385f65
commit b20d7a2213
2 changed files with 18 additions and 3 deletions

View File

@@ -407,5 +407,16 @@ public class FragmentsTest extends TestSuite {
"end\n"+
"return state\n" );
}
public void testLoadedNilUpvalue() {
runFragment( LuaValue.NIL,
"local a = print()\n"+
"local b = c and { d = e }\n"+
"local f\n"+
"local function g()\n"+
" return f\n"+
"end\n" +
"return g()\n" );
}
}
}