summaryrefslogtreecommitdiff
path: root/test/genericcall.myr
blob: 5a1bc923d4efbd306e73e7154ee584a670faa194 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std
/* checks that generics can call non-generics. exits with 42. */
const f = {
	-> 42
}

const main = {
	id("adsf")
	std.exit(id(42))
}

generic id = {a:@a
	-> f()
}