summaryrefslogtreecommitdiff
path: root/src/test/java/com/seaofnodes/simple/spill/Chapter22Test-testPerson.smp
blob: f860091dde7d873ed1dcdccaaa8349f7e79ef242 (plain)
1
2
3
4
5
6
7
8
struct Person {
    i32 age;
};

val fcn = { !Person?[] ps, int x ->
    if( ps[x] )
        ps[x].age++;
};