aboutsummaryrefslogtreecommitdiffstats
path: root/progs/tests/global_collision.sy
blob: 8dba295c94b4da73ffaa98e2bc3fa089f5651ea7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// TODO(ed): Pure functions
fac :: fn a: int -> int {
    if a < 1 { ret 1 }
    ret a * fac! a - 1
}

a :: fac! 4

start :: fn {
    a <=> 24
}