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
Since we couldn't update the std library right now, there is a "patch" function for Option defined at library/src/scala/runtime/stdLibPatches/Predef.scala
Compiler version
3.5.2
Minimized example
Output
Gives a type error that expected
Foo
but gotNull
. Fine, except the point ofOption.apply
is that it is a null-safe wrapper intoOption
.Expectation
Realistically, its type needs to be
def apply[A](x: A | Null): Option[A]
when that flag is turned on, otherwise it's now useless.The text was updated successfully, but these errors were encountered: