aboutsummaryrefslogtreecommitdiffstats
path: root/progs/tests/constant_function_closure.sy
blob: 6c7f0d791d1d28a2b7018f838f04ee9682d48cd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
q : int = 1

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

start :: fn {
    f() <=> 2
    f() <=> 3
    f() <=> 4
    f() <=> 5
}