You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ravi/tests/comptests/inputs/18_table.lua

6 lines
137 B

x = {}
f = compiler.load("x.a = 'Dibyendu' x[1] = 2")
assert(f and type(f) == 'function')
f()
assert(x.a == 'Dibyendu')
assert(x[1] == 2)