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 a12688a commit 53e85d6Copy full SHA for 53e85d6
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.isEmpty && call.symbol != ctx.owner.topLevelClass =>
+ case call :: _ if call.symbol != ctx.owner.topLevelClass =>
169
// reposition tree inlined from some other file
170
transformed.withPos(inlinedAtPos)
171
case _ => transformed
0 commit comments