shithub: mc

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