Skip to content

Commit

Permalink
Update library/src/scala/runtime/stdLibPatches/Predef.scala
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Stucki <[email protected]>
  • Loading branch information
noti0na1 and nicolasstucki authored Apr 30, 2024
1 parent e55a36d commit c1291d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/scala/runtime/stdLibPatches/Predef.scala
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ object Predef:

extension (inline opt: Option.type)
@experimental
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]]
end Predef

0 comments on commit c1291d3

Please sign in to comment.