Skip to content

Commit 5e1300f

Browse files
committed
undo changes in inlining, to find other commit which fix this
1 parent 2cca2ac commit 5e1300f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Inliner.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,8 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(using Context) {
520520
ref(rhsClsSym.sourceModule)
521521
else
522522
inlineCallPrefix
523-
val binding = ValDef(selfSym.asTerm, rhs.changeOwner(ctx.owner,selfSym)).withSpan(selfSym.span).setDefTree
523+
//val binding = ValDef(selfSym.asTerm, rhs.changeOwner(ctx.owner,selfSym)).withSpan(selfSym.span).setDefTree
524+
val binding = ValDef(selfSym.asTerm, rhs).withSpan(selfSym.span).setDefTree
524525
bindingsBuf += binding
525526
inlining.println(i"proxy at $level: $selfSym = ${bindingsBuf.last}")
526527
lastSelf = selfSym

0 commit comments

Comments
 (0)