shithub: mc

ref: ff88594df5c5df6fb8f227ab8e5df3529ba6e72f
dir: /test/match-badtypes.myr/

View raw version
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)
}