File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
compiler/src/dotty/tools/dotc/core
tests/pos-java-interop/i4357 Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -990,7 +990,7 @@ object SymDenotations {
990
990
*/
991
991
private def companionNamed (name : TypeName )(implicit ctx : Context ): Symbol =
992
992
if (owner.isClass)
993
- owner.info.decl (name).suchThat(_.isCoDefinedWith(symbol)).symbol
993
+ owner.unforcedDecls.lookup (name).suchThat(_.isCoDefinedWith(symbol)).symbol
994
994
else if (! owner.exists || ctx.compilationUnit == null )
995
995
NoSymbol
996
996
else if (! ctx.compilationUnit.tpdTree.isEmpty)
Original file line number Diff line number Diff line change
1
+ public class B_1 extends A <B_1 .C > {
2
+ public static class C {};
3
+ }
4
+ class A <T > {}
Original file line number Diff line number Diff line change
1
+ object Test {
2
+ val b : B_1 = new B_1 ()
3
+ }
You can’t perform that action at this time.
0 commit comments