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