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) {
642
642
inlineCallPrefix.tpe == tpe && ctx.owner.isContainedIn(tpe.cls)
643
643
|| tpe.cls.isContainedIn(inlinedMethod)
644
644
|| 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))
646
646
647
647
/** Very similar to TreeInfo.isPureExpr, but with the following inliner-only exceptions:
648
648
* - 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) {
743
743
744
744
private val registerTypes = new TypeTraverser :
745
745
override def stopAt = StopAt .Package
746
- override def traverse (t : Type ) =
746
+ override def traverse (t : Type ) =
747
747
registerType(t)
748
748
traverseChildren(t)
749
749
You can’t perform that action at this time.
0 commit comments