File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -929,7 +929,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
929
929
tp1.derivedRefinedType(
930
930
tp1.parent & tp2.parent,
931
931
tp1.refinedName,
932
- tp1.refinedInfo & tp2.refinedInfo)
932
+ tp1.refinedInfo & tp2.refinedInfo.substRefinedThis(tp2, RefinedThis (tp1)) )
933
933
case _ =>
934
934
NoType
935
935
}
@@ -995,7 +995,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
995
995
tp1.derivedRefinedType(
996
996
tp1.parent | tp2.parent,
997
997
tp1.refinedName,
998
- tp1.refinedInfo | tp2.refinedInfo)
998
+ tp1.refinedInfo | tp2.refinedInfo.substRefinedThis(tp2, RefinedThis (tp1)) )
999
999
case _ =>
1000
1000
NoType
1001
1001
}
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ class TreePickler(pickler: TastyPickler) {
201
201
case tpe : RefinedThis =>
202
202
writeByte(REFINEDthis )
203
203
val binderAddr = pickledTypes.get(tpe.binder)
204
- assert(binderAddr != null )
204
+ assert(binderAddr != null , tpe.binder )
205
205
writeRef(binderAddr.asInstanceOf [Addr ])
206
206
case tpe : SkolemType =>
207
207
pickleType(tpe.info)
You can’t perform that action at this time.
0 commit comments