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 62dd634 commit 40bd71cCopy full SHA for 40bd71c
compiler/src/dotty/tools/dotc/core/TypeComparer.scala
@@ -288,6 +288,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
288
if (isSubType(info1.alias, tp2)) return true
289
if (tp1.prefix.isStable) return false
290
case _ =>
291
+ if (tp1 eq NothingType) return tp1 == tp2.bottomType
292
}
293
thirdTry(tp1, tp2)
294
case tp1: TypeParamRef =>
0 commit comments