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 53e85d6 commit d52c3b2Copy full SHA for d52c3b2
compiler/src/dotty/tools/dotc/typer/Inliner.scala
@@ -165,7 +165,7 @@ object Inliner {
165
case _ =>
166
val transformed = super.transform(tree)
167
enclosingInlineds match {
168
- case call :: _ if call.symbol != ctx.owner.topLevelClass =>
+ case call :: _ if call.symbol.topLevelClass != ctx.owner.topLevelClass =>
169
// reposition tree inlined from some other file
170
transformed.withPos(inlinedAtPos)
171
case _ => transformed
0 commit comments