moonscript/spec/outputs/stub.lua
2013-06-07 23:14:08 -07:00

22 lines
397 B
Lua

local x = {
val = 100,
hello = function(self)
return print(self.val)
end
}
local fn = (function()
local _base_0 = x
local _fn_0 = _base_0.val
return function(...)
return _fn_0(_base_0, ...)
end
end)()
print(fn())
print(x:val())
x = (function(...)
local _base_0 = hello(...)
local _fn_0 = _base_0.world
return function(...)
return _fn_0(_base_0, ...)
end
end)(...)