Skip to content

Commit b3dab80

Browse files
nicolasstuckitimotheeandres
authored andcommitted
Fix tests/pos/inline-trait-multiple-stages-generic-defs
1 parent 8a6b695 commit b3dab80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/inlines/Inlines.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ object Inlines:
502502
protected class InlineTraitTreeMap extends InlinerTreeMap {
503503
override def apply(tree: Tree) = tree match {
504504
case tree @ Select(This(ident), name) if ident.name == parentSym.name && localParamAccessorsNames.contains(name) =>
505-
Select(This(ctx.owner.asClass), localParamAccessorsNames(name)).withSpan(parent.span)
505+
Inlined(EmptyTree, Nil, Select(This(ctx.owner.asClass), localParamAccessorsNames(name)).withSpan(parent.span)).withSpan(tree.span)
506506
case tree =>
507507
super.apply(tree)
508508
}

0 commit comments

Comments
 (0)