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