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/07_loadglobal.lua

7 lines
125 B

x = 1
y = 2
f = compiler.load('return x,y')
assert(f and type(f) == 'function')
local a,b = f()
assert(a == 1)
assert(b == 2)