moonscript/spec/outputs/operators.lua
2015-02-28 13:41:38 -08:00

24 lines
426 B
Lua

local x = 1 + 3
local y = 1 + 3
local z = 1 + 3 + 4
local k = b and c and g
local h = thing and function()
return print("hello world")
end
local i = thing or function()
return print("hello world")
end
local p = thing and function() end
print("hello world")
local s = thing or function() end and 234
local u = {
color = 1 and 2 and 3,
4,
4
}
local v = {
color = 1 and function()
return "yeah"
end,
"great"
}