blob: 79e0d43400d3a362f5a130702a158c0105762041 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Foo ::= struct {
x: u8;
};
#export main ::= fn() Foo {
g ::= fn() int { 3 };
f: Foo;
if f.x == 0 {
f.x = g() as u8;
} elif f.x == 1 {
f.x = 2;
} elif f.x == 3 {
f.x = 17;
} else {
f.x = 112;
}
f
};
|