We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ae3ef2 commit b347d27Copy full SHA for b347d27
src/dotty/tools/dotc/transform/LinkScala2ImplClasses.scala
@@ -48,11 +48,15 @@ class LinkScala2ImplClasses extends MiniPhaseTransform with IdentityDenotTransfo
48
}
49
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)
+ private def implMethod(meth: Symbol)(implicit ctx: Context): Symbol = {
+ val implInfo = meth.owner.implClass.info
+ if (meth.isConstructor)
54
+ implInfo.decl(nme.TRAIT_CONSTRUCTOR).symbol
55
+ else
56
+ implInfo.decl(meth.name)
57
.suchThat(c => FullParameterization.memberSignature(c.info) == meth.signature)
58
.symbol
59
+ }
60
61
private val Scala2xTrait = allOf(Scala2x, Trait)
-}
62
+}
0 commit comments