Commit a9ad052
committed
Fix "have same type after erasure" check
Perform the overriding checks after elimByName. I observed some problem with
catsEffect2, where a super accessor method with a `() ?=> T` parameter was compared with a
corresponding super accessor method with a `=> T` parameter. One of these methods was generated
before elimByName, the other after. So comparing them at phase elimRepeated + 1 gave two different
types. The problem is fixed by comparing after elimByName, which means that the type of the second
method is converted to match the first.1 parent 368cca1 commit a9ad052
File tree
2 files changed
+4
-4
lines changed- compiler/src/dotty/tools/dotc
- core
- transform
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1512 | 1512 | | |
1513 | 1513 | | |
1514 | 1514 | | |
1515 | | - | |
| 1515 | + | |
1516 | 1516 | | |
1517 | 1517 | | |
1518 | | - | |
| 1518 | + | |
1519 | 1519 | | |
1520 | 1520 | | |
1521 | 1521 | | |
1522 | 1522 | | |
1523 | 1523 | | |
1524 | 1524 | | |
1525 | | - | |
| 1525 | + | |
1526 | 1526 | | |
1527 | 1527 | | |
1528 | 1528 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
0 commit comments