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.
2 parents a0169b7 + f68058c commit 6f04ca7Copy full SHA for 6f04ca7
src/dotty/tools/dotc/core/TypeComparer.scala
@@ -527,7 +527,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
527
}
528
isSubType(hi1, tp2) || compareGADT
529
case _ =>
530
- def isNullable(tp: Type): Boolean = tp.dealias match {
+ def isNullable(tp: Type): Boolean = tp.widenDealias match {
531
case tp: TypeRef => tp.symbol.isNullableClass
532
case tp: RefinedOrRecType => isNullable(tp.parent)
533
case AndType(tp1, tp2) => isNullable(tp1) && isNullable(tp2)
0 commit comments