bug
bug copied to clipboard
Inconsistency in handling implicit conversion `Null => Int`
Either both should compile or neither.
scala> def foo(b: Null): Int = b
^
error: an expression of type Null is ineligible for implicit conversion
scala> def foo(b: Null with Null): Int = b
foo: (b: Null with Null)Int
heh — Scala 3 (I tested 3.4.0) can be bamboozled in the same way