File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -1579,21 +1579,17 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
1579
1579
finally canCompareAtoms = true
1580
1580
result
1581
1581
1582
- tp2.atoms match
1582
+ tp2.normalized. atoms match
1583
1583
case Atoms .Range (lo2, hi2) if canCompareAtoms && canCompare(hi2) =>
1584
- tp1.atoms match
1584
+ tp1.normalized. atoms match
1585
1585
case Atoms .Range (lo1, hi1) =>
1586
1586
if hi1.subsetOf(lo2) || knownSingletons && hi2.size == 1 && hi1 == hi2 then
1587
1587
Some (verified(true ))
1588
1588
else if ! lo1.subsetOf(hi2) then
1589
1589
Some (verified(false ))
1590
1590
else
1591
1591
None
1592
- case Atoms .Unknown =>
1593
- if knownSingletons then
1594
- Some (verified(recur(tp1, NothingType )))
1595
- else
1596
- None
1592
+ case _ => Some (verified(recur(tp1, NothingType )))
1597
1593
case _ => None
1598
1594
1599
1595
/** Subtype test for corresponding arguments in `args1`, `args2` according to
You can’t perform that action at this time.
0 commit comments