Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change exhaustiveness analysis to permit multiple constructors per pa…
…ttern Slice patterns are different from the rest in that a single slice pattern does not have a distinct constructor if it contains a variable-length subslice pattern. For example, the pattern [a, b, ..tail] can match a slice of length 2, 3, 4 and so on. As a result, the decision tree for exhaustiveness and redundancy analysis should explore each of those constructors separately to determine if the pattern could be useful when specialized for any of them.
- Loading branch information