Commit a9696ac
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 d5be9ae commit a9696ac
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 | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
5120 | 5122 | | |
5121 | 5123 | | |
5122 | 5124 | | |
| 5125 | + | |
| 5126 | + | |
| 5127 | + | |
5123 | 5128 | | |
5124 | 5129 | | |
5125 | 5130 | | |
| |||
| 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