Skip to content

Commit d0a0974

Browse files
committed
Remove experimental annotation from Option.fromNullable
1 parent 24ed58b commit d0a0974

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

library/src/scala/Predef.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,6 @@ object Predef extends LowPriorityImplicits {
594594
!(x eq y)
595595

596596
extension (opt: Option.type)
597-
@experimental
598597
inline def fromNullable[T](t: T | Null): Option[T] = Option(t).asInstanceOf[Option[T]]
599598

600599
// For backward compatibility with code compiled without -Yexplicit-nulls.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ object Predef:
6767
!(x eq y)
6868

6969
extension (opt: Option.type)
70-
@experimental
7170
inline def fromNullable[T](t: T | Null): Option[T] = Option(t).asInstanceOf[Option[T]]
7271

7372
/** A type supporting Self-based type classes.

tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ val experimentalDefinitionInLibrary = Set(
9090
"scala.quoted.Quotes.reflectModule.RenameSelectorModule.apply",
9191
"scala.quoted.Quotes.reflectModule.SimpleSelectorModule.apply",
9292

93-
// New feature: fromNullable for explicit nulls
94-
"scala.Predef$.fromNullable",
95-
9693
// New feature: modularity
9794
"scala.Precise",
9895
"scala.annotation.internal.WitnessNames",

0 commit comments

Comments
 (0)