Skip to content

Commit 9ee4219

Browse files
committed
Fix
1 parent 621befb commit 9ee4219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ class Inliner(call: tpd.Tree, rhs: tpd.Tree)(implicit ctx: Context) {
460460
// The complete translation maps referenves to this and parameters to
461461
// corresponding arguments or proxies on the type and term level. It also changes
462462
// the owner from the inlined method to the current owner.
463-
val inliner = new TreeTypeMap(typeMap, treeMap, meth :: Nil, ctx.owner :: Nil)
463+
val inliner = new TreeTypeMap(typeMap, treeMap, meth :: Nil, ctx.owner :: Nil)(inlineContext(call))
464464

465465
val expansion = inliner(rhs.withPos(call.pos))
466466
ctx.traceIndented(i"inlining $call\n, BINDINGS =\n${bindingsBuf.toList}%\n%\nEXPANSION =\n$expansion", inlining, show = true) {

0 commit comments

Comments
 (0)