summaryrefslogtreecommitdiff
path: root/test/generic.myr
blob: ef69c396ba0be7be560ff27421867b7b1e582d39 (plain)
1
2
3
4
5
6
7
8
9
10
11
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))
}