aboutsummaryrefslogtreecommitdiffstats
path: root/tests/simple.tdy
blob: f7929f4955b9046339d29f9888818cb3b38a8107 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
a : fn int, int -> int = fn b: int, c: int -> int {
   ret b + c
}

print a(1, 2) + 1

b := fn c: fn int -> -> int {
    c(2)
    ret 1
}

c := fn a: int {
    print a
}

b(c)

// print b(fn a: int -> {
//     print a
// })