shithub: mc

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