We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ac8bcd commit d600684Copy full SHA for d600684
library/src/scala/runtime/stdLibPatches/Predef.scala
@@ -61,4 +61,5 @@ object Predef:
61
inline def ne(inline y: AnyRef | Null): Boolean =
62
!(x eq y)
63
64
+ extension (opt: Option.type) def fromNullable[T](t: T|Null): Option[T] = Option(t).asInstanceOf
65
end Predef
0 commit comments