File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,15 @@ class LinkScala2ImplClasses extends MiniPhaseTransform with IdentityDenotTransfo
48
48
}
49
49
}
50
50
51
- private def implMethod (meth : Symbol )(implicit ctx : Context ): Symbol =
52
- meth.owner.implClass.info
53
- .decl(if (meth.isConstructor) nme.TRAIT_CONSTRUCTOR else meth.name)
51
+ private def implMethod (meth : Symbol )(implicit ctx : Context ): Symbol = {
52
+ val implInfo = meth.owner.implClass.info
53
+ if (meth.isConstructor)
54
+ implInfo.decl(nme.TRAIT_CONSTRUCTOR ).symbol
55
+ else
56
+ implInfo.decl(meth.name)
54
57
.suchThat(c => FullParameterization .memberSignature(c.info) == meth.signature)
55
58
.symbol
59
+ }
56
60
57
61
private val Scala2xTrait = allOf(Scala2x , Trait )
58
- }
62
+ }
You can’t perform that action at this time.
0 commit comments