Skip to content

Commit 1b52634

Browse files
committed
Normalize types in compareAtoms
1 parent b614d84 commit 1b52634

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,9 +1606,9 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
16061606
finally canCompareAtoms = true
16071607
result
16081608

1609-
tp2.atoms match
1609+
tp2.normalized.atoms match
16101610
case Atoms.Range(lo2, hi2) if canCompareAtoms && canCompare(hi2) =>
1611-
tp1.atoms match
1611+
tp1.normalized.atoms match
16121612
case Atoms.Range(lo1, hi1) =>
16131613
if hi1.subsetOf(lo2) || knownSingletons && hi2.size == 1 && hi1 == hi2 then
16141614
Some(verified(true))

0 commit comments

Comments
 (0)