shithub: mc

ref: f16eddc8b5b4c20a4aef509d3b9f69ef83b49b4c
dir: /test/genericrec.myr/

View raw version
/* 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
}