aboutsummaryrefslogtreecommitdiffstats
path: root/progs/tests/scoping.sy
blob: dfcf92c5465581b65fdb0f659728b188056bf14d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
start :: fn {
    a : int = 1
    {
        a <=> 1
        a : int = a + a
        a <=> 2
    }
    a <=> 1

    {
        a = 2
        a : int = 1
        a
    }
    a <=> 2
}