@@ -278,10 +278,10 @@ class Inliner(val call: tpd.Tree)(using Context):
278
278
.map((cls, proxy) => (cls.ownersIterator.length, proxy.symbol, cls))
279
279
.sortBy(- _._1)
280
280
281
- def outerSelect (prefix : Symbol , prefixCls : Symbol , level : Int , info : Type ) =
281
+ def outerSelect (prefix : Tree , prefixCls : Symbol , hops : Int , info : Type ) =
282
282
val tpt = TypeTree (adaptToPrefix(prefixCls.appliedRef))
283
- val qual = Typed (ref( prefix) , tpt)
284
- qual.outerSelect(level , info)
283
+ val qual = Typed (prefix, tpt)
284
+ qual.outerSelect(hops , info)
285
285
286
286
var lastSelf : Symbol = NoSymbol
287
287
var lastCls : Symbol = NoSymbol
@@ -298,13 +298,13 @@ class Inliner(val call: tpd.Tree)(using Context):
298
298
if rhsClsSym.is(Module ) && rhsClsSym.isStatic then
299
299
ref(rhsClsSym.sourceModule)
300
300
else if lastSelf.exists then
301
- outerSelect(lastSelf, lastCls, lastLevel - level, selfSym.info)
301
+ outerSelect(ref( lastSelf) , lastCls, lastLevel - level, selfSym.info)
302
302
else
303
303
val pre = inlineCallPrefix match
304
304
case Super (qual, _) => qual
305
305
case pre => pre
306
306
val preLevel = inlinedMethod.owner.ownersIterator.length
307
- if preLevel > level then pre. outerSelect(preLevel - level, selfSym.info)
307
+ if preLevel > level then outerSelect(pre, inlinedMethod.owner, preLevel - level, selfSym.info)
308
308
else pre
309
309
310
310
val binding = accountForOpaques(
0 commit comments