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/13_call.lua

11 lines
258 B

g = compiler.load('return 3, 4.2')
assert(g and type(g) == 'function')
local a, b = g()
assert(a == 3)
assert(b == 4.2)
f = compiler.load('return 0, g(), 1')
assert(f and type(f) == 'function')
local a, b, c = f()
assert(a == 0)
assert(b == 3)
assert(c == 1)