shithub: mc

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