Skip to content

Commit 1598582

Browse files
committed
Remove experimental annotation from Option.fromNullable
1 parent 4db2859 commit 1598582

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
@@ -85,9 +85,6 @@ val experimentalDefinitionInLibrary = Set(
8585
"scala.quoted.Quotes.reflectModule.RenameSelectorModule.apply",
8686
"scala.quoted.Quotes.reflectModule.SimpleSelectorModule.apply",
8787

88-
// New feature: fromNullable for explicit nulls
89-
"scala.Predef$.fromNullable",
90-
9188
// New feature: modularity
9289
"scala.Precise",
9390
"scala.annotation.internal.WitnessNames",

0 commit comments

Comments
 (0)