summaryrefslogtreecommitdiff
path: root/test/genericrec.myr
blob: e280f0026e09f07c76afaa7baab807953a83d0cc (plain)
1
2
3
4
5
6
7
8
9
10
11
/* test that generic types can be recursive, as long as they're not self
 * including. This just needs to compile and exit with 0. */
type list(@t) = struct
	val	: @t
	next	: list(@t)*
;;

const main = {
	var v : list(int)
	-> 0
}