We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e55a36d commit c1291d3Copy full SHA for c1291d3
library/src/scala/runtime/stdLibPatches/Predef.scala
@@ -65,5 +65,5 @@ object Predef:
65
66
extension (inline opt: Option.type)
67
@experimental
68
- inline def fromNullable[T](t: T | Null): Option[T] = Option(t).asInstanceOf
+ inline def fromNullable[T](t: T | Null): Option[T] = Option(t).asInstanceOf[Option[T]]
69
end Predef
0 commit comments