File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -642,7 +642,7 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(using Context) {
642642 inlineCallPrefix.tpe == tpe && ctx.owner.isContainedIn(tpe.cls)
643643 || tpe.cls.isContainedIn(inlinedMethod)
644644 || tpe.cls.is(Package )
645- || tpe.cls.isStaticOwner && ! (tpe.cls.seesOpaques && ctx.owner .isContainedIn(tpe.cls))
645+ || tpe.cls.isStaticOwner && ! (tpe.cls.seesOpaques && inlinedMethod .isContainedIn(tpe.cls))
646646
647647 /** Very similar to TreeInfo.isPureExpr, but with the following inliner-only exceptions:
648648 * - synthetic case class apply methods, when the case class constructor is empty, are
@@ -743,7 +743,7 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(using Context) {
743743
744744 private val registerTypes = new TypeTraverser :
745745 override def stopAt = StopAt .Package
746- override def traverse (t : Type ) =
746+ override def traverse (t : Type ) =
747747 registerType(t)
748748 traverseChildren(t)
749749
You can’t perform that action at this time.
0 commit comments