You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider:
```scala
val x: Int = 0
val y: Int | Null = x // during erasure, x is boxed here, and Int | Null becomes Object
val z: Int = y
```
The last line should be an error. But previously
```
C | Null <: C
```
succeeded for all classes `C` since it was deemed incorrectly that `Null` derivesFrom `C`.
0 commit comments