Skip to content

Commit c1291d3

Browse files
Update library/src/scala/runtime/stdLibPatches/Predef.scala
Co-authored-by: Nicolas Stucki <nicolas.stucki@gmail.com>
1 parent e55a36d commit c1291d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/runtime/stdLibPatches/Predef.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ object Predef:
6565

6666
extension (inline opt: Option.type)
6767
@experimental
68-
inline def fromNullable[T](t: T | Null): Option[T] = Option(t).asInstanceOf
68+
inline def fromNullable[T](t: T | Null): Option[T] = Option(t).asInstanceOf[Option[T]]
6969
end Predef

0 commit comments

Comments
 (0)