summaryrefslogtreecommitdiff
path: root/test/match-badtypes.myr
blob: 564c9603886e16e2b8f9f5a0c3ac74150dd33520 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
	;;
}