We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents be4bf7b + 11583b8 commit 91e5f35Copy full SHA for 91e5f35
compiler/src/dotty/tools/dotc/core/Atoms.scala
@@ -20,8 +20,11 @@ enum Atoms:
20
case Range(lo1, hi1) =>
21
that match
22
case Range(lo2, hi2) => Range(lo1 & lo2, hi1 & hi2)
23
- case Unknown => this
24
- case Unknown => that
+ case Unknown => Range(Set.empty, hi1)
+ case Unknown =>
25
+ that match
26
+ case Range(lo2, hi2) => Range(Set.empty, hi2)
27
+ case Unknown => Unknown
28
29
def | (that: Atoms): Atoms = this match
30
0 commit comments