mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
15 lines
249 B
Lua
15 lines
249 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()) |