summaryrefslogtreecommitdiff
path: root/test/match-badtypes.myr
blob: 1bc96b7e0ad2b04fd0da3eb2de5e5b48134769a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std
/*
should fail to compile because
all types matched over should be
compatible. Strings are not compatible
with integers.
*/
const foo = {
	match 123
	|"asdf":	123
	|234567:	888
	;;
	std.exit(42)
}