Commit 209b18e
committed
Fix
The method parameter was called `resultType` but inside the method we
use `resType` which is the result type of the existing PolyProto
instance, so TypeMaps never updated the result type of a PolyProto
before.
According to git blame, this typo was introduced when the class
parameter was renamed back in 2015 in
b5c3a28.derivedPolyProto to use the correct result type1 parent 0f6df73 commit 209b18e
File tree
2 files changed
+5
-1
lines changed- compiler/src/dotty/tools/dotc/typer
- tests/neg
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
585 | | - | |
| 585 | + | |
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments