shithub: mc

ref: 27d6ae05d6408b4b2c9fb6b58799f503ddb1b6d6
dir: /test/genericrec.myr/

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