Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compiling unreachable integer patterns
This ensures that when encountering cases that use binding patterns followed by cases that use integer patterns, those integer patterns are compiled such that they can be detected by a compiler as being unreachable (= since their original target bodies are not present in the decision tree). This is adopted from the Gleam merge request gleam-lang/gleam#3046 that made the same fix, minus a redundant clone() when pushing into the fallback rows. For more information refer to the following issues: - inko-lang/inko#707 - gleam-lang/gleam#2651
- Loading branch information