moonscript/spec/outputs/stub.lua

23 lines
356 B
Lua
Raw Normal View History

local x = {
val = 100,
hello = function(self)
return print(self.val)
end
}
local fn
do
local _base_0 = x
local _fn_0 = _base_0.val
fn = function(...)
return _fn_0(_base_0, ...)
end
end
print(fn())
2011-10-09 22:58:39 +00:00
print(x:val())
do
2011-10-09 22:58:39 +00:00
local _base_0 = hello(...)
local _fn_0 = _base_0.world
x = function(...)
2011-10-09 22:58:39 +00:00
return _fn_0(_base_0, ...)
end
end