moonscript/tests/inputs/do.moon
2012-10-31 20:15:44 -07:00

28 lines
282 B
Plaintext

do
print "hello"
print "world"
x = do
print "hello"
print "world"
y = do
things = "shhh"
-> "hello: " .. things
-> if something then do "yeah"
t = {
y: do
number = 100
(x) -> x + number
}
(y=(do
x = 10 + 2
x), k=do
"nothing") -> do
"uhhh"