shithub: mc

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