summaryrefslogtreecommitdiffstats
path: root/elab.sml
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2024-05-05 21:25:13 -0700
committerRose Hogenson <rosehogenson@posteo.net>2024-05-05 21:25:13 -0700
commitdf7dab936f11310cf8e422eb4c06b2815eaf2807 (patch)
tree0a2ef1c6c89e5187e4082adf22d4ab87925cd7dd /elab.sml
parentAdd tuples. (diff)
downloadsml-df7dab936f11310cf8e422eb4c06b2815eaf2807.tar.zst
Fix a bug in pattern matching.
Diffstat (limited to 'elab.sml')
-rw-r--r--elab.sml5
1 files changed, 1 insertions, 4 deletions
diff --git a/elab.sml b/elab.sml
index 784515d..b62adc9 100644
--- a/elab.sml
+++ b/elab.sml
@@ -117,10 +117,7 @@ struct
(enumerate firstRow)
in
case refutablePattern of
- NONE =>
- if null rows
- then hd actions
- else raise Fail "redundant match"
+ NONE => hd actions
| SOME (i, _) =>
let
val (patterns, occurrences) =