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 f9a56a2 commit 5dccc29Copy full SHA for 5dccc29
compiler/src/dotty/tools/dotc/transform/patmat/Space.scala
@@ -379,7 +379,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
379
380
/** Is `tp1` a subtype of `tp2`? */
381
def isSubType(tp1: Type, tp2: Type): Boolean = {
382
- val res = tp1 <:< tp2 && (tp1 != nullType || tp2 == nullType)
+ val res = (tp1 != nullType || tp2 == nullType) && tp1 <:< tp2
383
debug.println(s"${tp1.show} <:< ${tp2.show} = $res")
384
res
385
}
0 commit comments