Skip to content

Commit c90b200

Browse files
committed
Fix owner of memo cache
1 parent 8dd26db commit c90b200

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
@@ -424,7 +424,7 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(implicit ctx: Context) {
424424
def memoized: Tree = {
425425
val currentOwner = ctx.owner.skipWeakOwner
426426
if (currentOwner.isRealMethod) {
427-
val cacheOwner = ctx.owner.effectiveOwner
427+
val cacheOwner = currentOwner.owner
428428
val argType = callTypeArgs.head.tpe
429429
val memoVar = ctx.newSymbol(
430430
owner = cacheOwner,

0 commit comments

Comments
 (0)