moonscript/tests/outputs/assign.lua

30 lines
478 B
Lua
Raw Normal View History

2011-06-13 05:38:42 +00:00
local _
_ = function()
2011-05-22 05:00:31 +00:00
local joop = 2302
return function(hi)
2011-05-22 05:00:31 +00:00
local d = 100
hi = 1021
2011-05-29 23:25:52 +00:00
local a, b, c
a, b, c, d = 1, 2, 3, 4
local hello
hello[232], (5 + 5)[121], hello, x[99] = 100, 200, 300
2011-05-22 05:00:31 +00:00
joop = 12
end
end
local joop = 2345
local a, b
if hello then
a, b = "hello"
else
a, b = "nothing", "yeah"
end
if hello then
if yeah then
a, b = "one", "two"
else
a, b = "mmhh"
end
else
print("the other")
a, b = "nothing", "yeah"
end