File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/inlines Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -583,10 +583,10 @@ class Inliner(val call: tpd.Tree)(using Context):
583
583
val inlinedCtx = ctx.withSource(inlinedMethod.topLevelClass.source)
584
584
paramProxy.get(tree.tpe) match {
585
585
case Some (t) if tree.isTerm && t.isSingleton =>
586
- val inlinedSingleton = singleton(t).withSpan(argSpan )
586
+ val inlinedSingleton = singleton(t).withSpan(tree.span )
587
587
inlinedFromOutside(inlinedSingleton)(tree.span)
588
588
case Some (t) if tree.isType =>
589
- inlinedFromOutside(TypeTree (t).withSpan(argSpan ))(tree.span)
589
+ inlinedFromOutside(TypeTree (t).withSpan(tree.span ))(tree.span)
590
590
case _ => tree
591
591
}
592
592
case tree @ Select (qual : This , name) if tree.symbol.is(Private ) && tree.symbol.isInlineMethod =>
You can’t perform that action at this time.
0 commit comments