aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/do.moon
blob: 334e68f37f889f86c34fd6dc6a51dc40e236a3b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

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"