File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
compiler/src/dotty/tools/dotc/transform/patmat Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -750,14 +750,10 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
750
750
751
751
if (! redundancyCheckable(sel)) return
752
752
753
- val targetSpace = if (ctx.explicitNulls) {
754
- Typ (selTyp, true )
755
- } else {
756
- if (selTyp.classSymbol.isPrimitiveValueClass)
757
- Typ (selTyp, true )
758
- else
759
- Or (Typ (selTyp, true ) :: constantNullSpace :: Nil )
760
- }
753
+ val targetSpace =
754
+ if (ctx.explicitNulls) Typ (selTyp, true )
755
+ else if (selTyp.classSymbol.isPrimitiveValueClass) Typ (selTyp, true )
756
+ else Or (Typ (selTyp, true ) :: constantNullSpace :: Nil )
761
757
762
758
// in redundancy check, take guard as false in order to soundly approximate
763
759
def projectPrevCases (cases : List [CaseDef ]): Space =
You can’t perform that action at this time.
0 commit comments