Commit c8b4da8
committed
Under -source:3.3 and below, always use the legacy match type algorithm.
This should improve consistency with the actual earlier compilers,
since it means the matching algorithm will be intact.
Note that the new behavior of `provablyDisjoint` is always applied,
even under `-source:3.3`. This includes using `provablyDisjoint`
instead of `provablyEmpty`. So it is still possible that something
behaves differently than the actual earlier compilers.1 parent 16cf4f2 commit c8b4da8
File tree
2 files changed
+7
-2
lines changed- compiler/src/dotty/tools/dotc/core
- tests/neg
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
5117 | 5119 | | |
5118 | 5120 | | |
5119 | 5121 | | |
| 5122 | + | |
| 5123 | + | |
| 5124 | + | |
5120 | 5125 | | |
5121 | 5126 | | |
5122 | 5127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
0 commit comments