shithub: mc

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