Commit 7cff9dd
Fix NonNull test
The test case `tests/explicit-nulls/neg/strip.scala` specify that null
unions inside intersection types should work. After changing the
scrutinee type of the extractor `OrNull` it is no longer the case.
Changing the scrutinee type is still justified because it agrees with
the name as well as the usage in `Types.scala`.
In contrast, in `Typer.scala`, the logic is more clear without using `OrNull`.1 parent 8275f32 commit 7cff9dd
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
| 480 | + | |
| 481 | + | |
481 | 482 | | |
482 | 483 | | |
483 | 484 | | |
484 | 485 | | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
489 | 491 | | |
490 | 492 | | |
491 | 493 | | |
| |||
0 commit comments