summaryrefslogtreecommitdiff
path: root/test.toc
blob: bffe02aeafb4f9edf77023f3f5dee3d6736c5754 (plain)
1
2
3
4
5
6
7
8
9
10
// it would be nice if Arr.data.len == Arr.len (: but this will require some C code...
Arr ::= fn (t :: Type) Type {
	struct {
		   data : t;
	}
};

main ::= fn() {
	 arr : Arr(int);
};