shithub: mc

ref: 994d0ecb8ed4f5f78801669a607dad572c0d93a1
dir: /test/generic.myr/

View raw version
use std
/* checks that simple generics are specialized correctly. exits with 42. */
generic id = {a:@a
	-> a
}

const main = {
	id("adsf")
	std.exit(id(42))
}