File tree 2 files changed +1
-4
lines changed
compiler/src/dotty/tools/dotc/core
2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ object TypeOps:
165
165
// corrective steps, so no widening is wanted.
166
166
simplify(l, theMap) | simplify(r, theMap)
167
167
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
169
169
else if l.isNothingType then r
170
170
else mapOver
171
171
case tp @ CapturingType (parent, refs) =>
Original file line number Diff line number Diff line change @@ -446,9 +446,6 @@ object Types {
446
446
final def containsWildcardTypes (using Context ) =
447
447
existsPart(_.isInstanceOf [WildcardType ], StopAt .Static , forceLazy = false )
448
448
449
- /** Is this a union type? */
450
- final def isOrType : Boolean = this .isInstanceOf [OrType ]
451
-
452
449
// ----- Higher-order combinators -----------------------------------
453
450
454
451
/** 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