We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70eae28 commit 85c3d48Copy full SHA for 85c3d48
compiler/src/dotty/tools/dotc/core/ConstraintHandling.scala
@@ -253,6 +253,9 @@ trait ConstraintHandling {
253
case tp: SingletonType => true
254
case AndType(tp1, tp2) => isMultiSingleton(tp1) | isMultiSingleton(tp2)
255
case OrType(tp1, tp2) => isMultiSingleton(tp1) & isMultiSingleton(tp2)
256
+ case tp: TypeRef => isMultiSingleton(tp.info.hiBound)
257
+ case tp: TypeVar => isMultiSingleton(tp.underlying)
258
+ case tp: TypeParamRef => isMultiSingleton(bounds(tp).hi)
259
case _ => false
260
}
261
def isFullyDefined(tp: Type): Boolean = tp match {
0 commit comments