shithub: mc

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