shithub: mc

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