Commit 7953479
committed
Make pattern matching typecheck more principled
When checking a pattern `p` against a selector `s` we should check
that `p == s` is typable. So far we did this in a roundabout way
by calling homogenizeType and canCheckEquals diretcly. But that
is correct only if there are no user-defined definitions of `==`.1 parent 23e64a3 commit 7953479
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2098 | 2098 | | |
2099 | 2099 | | |
2100 | 2100 | | |
2101 | | - | |
2102 | | - | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
2103 | 2106 | | |
2104 | 2107 | | |
2105 | 2108 | | |
| |||
0 commit comments