shithub: mc

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