summaryrefslogtreecommitdiff
path: root/test.toc
blob: d4726ff0a5043336debeee4852ad2ad7dae953cf (plain)
1
2
3
4
5
6
7
8
9
10
11
Foo ::= struct {
	x: u8;
};
#export main ::= fn() Foo {
	g ::= fn() int { 3 };
	a : [3]int;
	b := a[1:3];
	b[0] = 7;
	f: Foo;
	f
};