We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8ed01f commit fd70613Copy full SHA for fd70613
compiler/src/dotty/tools/dotc/inlines/Inliner.scala
@@ -583,10 +583,10 @@ class Inliner(val call: tpd.Tree)(using Context):
583
val inlinedCtx = ctx.withSource(inlinedMethod.topLevelClass.source)
584
paramProxy.get(tree.tpe) match {
585
case Some(t) if tree.isTerm && t.isSingleton =>
586
- val inlinedSingleton = singleton(t).withSpan(argSpan)
+ val inlinedSingleton = singleton(t).withSpan(tree.span)
587
inlinedFromOutside(inlinedSingleton)(tree.span)
588
case Some(t) if tree.isType =>
589
- inlinedFromOutside(TypeTree(t).withSpan(argSpan))(tree.span)
+ inlinedFromOutside(TypeTree(t).withSpan(tree.span))(tree.span)
590
case _ => tree
591
}
592
case tree @ Select(qual: This, name) if tree.symbol.is(Private) && tree.symbol.isInlineMethod =>
0 commit comments