summaryrefslogtreecommitdiff
path: root/test.toc
blob: 77708b6e6851d489747b14b240b1dcfbc6b6ca91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
s ::= fn(t:: Type) Type {
	struct {
		c :: t = 7 as t;
		m: t;
	}
}

main ::= fn() {
	o: s(int);
	x := o["m"];
	y ::= o["c"];
}