shithub: mc

ref: e1967b76c1fdf21a0b8f27b608d43b5b6b3366bc
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))
}