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

6 lines
147 B

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