aboutsummaryrefslogtreecommitdiffstats
path: root/tests/simple.tdy
blob: 6dde932eb3fd7ccc83d2ec234f90a5ee2a1efabd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// a := 1
// a = 2 + 1
// a = 3
// 
// for i := 0, i < 10, i = i + 1 {
//     print i + 1
//     print i + 2
// }

f := fn b: int -> int {
    ret b + 1
}

f(1)