Skip to content

Commit 56150a2

Browse files
committed
Tighten comparison of skolem types
Skolem types are =:= only if they are reference-equal. Two skolem types with the same underlying type are not necessarily equal. Tests continue to run under this tightened definition.
1 parent 91bb668 commit 56150a2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/dotty/tools/dotc/core/TypeComparer.scala

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,6 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling wi
274274
case _ =>
275275
thirdTry(tp1, tp2)
276276
}
277-
case tp1: SkolemType =>
278-
tp2 match {
279-
case tp2: SkolemType if tp1 == tp2 => true
280-
case _ => thirdTry(tp1, tp2)
281-
}
282277
case tp1: TypeVar =>
283278
isSubType(tp1.underlying, tp2)
284279
case tp1: WildcardType =>

0 commit comments

Comments
 (0)