File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
compiler/src/dotty/tools/dotc/inlines Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -523,8 +523,6 @@ object Inlines:
523
523
524
524
private val parentSym = symbolFromParent(parent)
525
525
526
- private val thisInlineTrait = ThisType .raw(ctx.owner.typeRef)
527
-
528
526
def expandDefs (overriddenDecls : Set [Symbol ]): List [Tree ] =
529
527
val stats = Inlines .defsToInline(parentSym).filterNot(stat => overriddenDecls.contains(stat.symbol))
530
528
val inlinedSymbols = stats.map(stat => inlinedSym(stat.symbol))
@@ -533,7 +531,7 @@ object Inlines:
533
531
534
532
protected class InlineTraitTypeMap extends InlinerTypeMap {
535
533
override def apply (t : Type ) = t match {
536
- case t : ThisType if t.cls == parentSym => thisInlineTrait
534
+ case t : ThisType if t.cls == parentSym => ctx.owner.thisType
537
535
case t => super .apply(t)
538
536
}
539
537
}
You can’t perform that action at this time.
0 commit comments