File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ object TypeOps:
165165 // corrective steps, so no widening is wanted.
166166 simplify(l, theMap) | simplify(r, theMap)
167167 else if r.isNothingType || (l eq r) then l
168- else if l.isOrType || r.isOrType then tp.deduplicatedAbsorbingNothingTypes
168+ else if l.isInstanceOf [ OrType ] || r.isInstanceOf [ OrType ] then tp.deduplicatedAbsorbingNothingTypes
169169 else if l.isNothingType then r
170170 else mapOver
171171 case tp @ CapturingType (parent, refs) =>
Original file line number Diff line number Diff line change @@ -442,9 +442,6 @@ object Types {
442442 final def containsWildcardTypes (using Context ) =
443443 existsPart(_.isInstanceOf [WildcardType ], StopAt .Static , forceLazy = false )
444444
445- /** Is this a union type? */
446- final def isOrType : Boolean = this .isInstanceOf [OrType ]
447-
448445// ----- Higher-order combinators -----------------------------------
449446
450447 /** Returns true if there is a part of this type that satisfies predicate `p`.
You can’t perform that action at this time.
0 commit comments