shithub: mc

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