Commit 03a37a5
committed
fix JavaMethodType creation and parameter matching of JavaMethodTypes
Fixes two bugs needed for java-override test:
Namer was creating a MethodType instead of a JavaMethodType even though
the JavaDefined flag was set on the DefDef.
TypeComparer.matchingParams had the cases mixed up: it considered a
j.l.Object in Scala code to match a s.Any in Java code. It should be
that Object in Java code matches Any in Scala code.1 parent 7df36a3 commit 03a37a5
File tree
5 files changed
+4
-2
lines changed- src/dotty/tools/dotc
- core
- typer
- tests/pos/java-override
- test/dotc
5 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
681 | 681 | | |
682 | 682 | | |
683 | 683 | | |
684 | | - | |
685 | | - | |
| 684 | + | |
| 685 | + | |
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
| 659 | + | |
659 | 660 | | |
660 | 661 | | |
661 | 662 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
File renamed without changes.
File renamed without changes.
0 commit comments