Add warning for unreachable rule in pattern matching functions #736
Labels
CLI
About Bend's CLI
compilation
Compilation of terms and functions to HVM
enhancement
New feature or request
Consider this program
The second rule is not actually reachable because we mispelled
True
in the first one, so it's taken as a variable pattern.Users have no indication that this happened even though it's almost always a mistake. We want this to throw a warning instead.
The text was updated successfully, but these errors were encountered: