File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
compiler/src/dotty/tools/dotc/inlines Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -684,11 +684,14 @@ object Inlines:
684
684
685
685
private def inlinedRhs (vddef : ValOrDefDef , inlinedSym : Symbol )(using Context ): Tree =
686
686
val rhs = vddef.rhs.changeOwner(vddef.symbol, inlinedSym)
687
+ inlinedRhs(rhs)(using ctx.withOwner(inlinedSym))
688
+
689
+ private def inlinedRhs (rhs : Tree )(using Context ): Tree =
687
690
if rhs.isEmpty then
688
691
rhs
689
692
else
690
- val inlinedRhs = inContext(ctx.withOwner(inlinedSym)) { inlined(rhs)._2 }
691
- Inlined (tpd.ref(parentSym), Nil , inlinedRhs ).withSpan(parent.span)
693
+ // TODO make version of inlined that does not return bindings?
694
+ Inlined (tpd.ref(parentSym), Nil , inlined(rhs)._2 ).withSpan(parent.span)
692
695
693
696
private class ParamAccessorsMapper :
694
697
private val paramAccessorsTrees : mutable.Map [Symbol , Map [Name , Tree ]] = mutable.Map .empty
You can’t perform that action at this time.
0 commit comments