summaryrefslogtreecommitdiff
path: root/test/match-badtypes.myr
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2012-06-29 13:14:52 -0400
committerOri Bernstein <orib@google.com>2012-06-29 13:14:52 -0400
commit7f63840cfaa3640e76d6ac0688a19ba52a68764a (patch)
treecda94c4f78cf874dc8afb12c349145a979508747 /test/match-badtypes.myr
parent4f1a566d65a2a1c91c18dbd96f5cba69b80d8008 (diff)
downloadmc-7f63840cfaa3640e76d6ac0688a19ba52a68764a.tar.gz
Add test for type checking match types.
Diffstat (limited to 'test/match-badtypes.myr')
-rw-r--r--test/match-badtypes.myr8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/match-badtypes.myr b/test/match-badtypes.myr
new file mode 100644
index 0000000..5fd5d56
--- /dev/null
+++ b/test/match-badtypes.myr
@@ -0,0 +1,8 @@
+const foo = {
+ match 123
+ "asdf": 123
+ ;;
+ 234: 888
+ ;;
+ ;;
+}