Commit 2ad27b0
committed
Fix codegen for
MoveStatics moves some of these definitions from the companion to the
corresponding class, but does not update the trees referencing these
definitions, so the qualifier type cannot be used as a receiver.
I think we need to seriously rethink how we handle static methods in the
compiler, but that would be a huge refactoring, so this commit just
patches the backend to special case `@static` methods to use the method
owner as receiver as was always done before this PR.@static definitions1 parent fa42b81 commit 2ad27b0
File tree
3 files changed
+9
-4
lines changed- compiler/src/dotty/tools/backend/jvm
3 files changed
+9
-4
lines changedLines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
443 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
444 | 446 | | |
445 | 447 | | |
446 | 448 | | |
| |||
1143 | 1145 | | |
1144 | 1146 | | |
1145 | 1147 | | |
1146 | | - | |
| 1148 | + | |
1147 | 1149 | | |
1148 | 1150 | | |
1149 | 1151 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
| 494 | + | |
494 | 495 | | |
495 | 496 | | |
496 | 497 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
| 681 | + | |
| 682 | + | |
681 | 683 | | |
682 | | - | |
| 684 | + | |
683 | 685 | | |
684 | 686 | | |
685 | 687 | | |
| |||
0 commit comments