Skip to content

Commit f1163d2

Browse files
committed
Make experimental final
1 parent 96c956a commit f1163d2

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

library/src-bootstrapped/scala/annotation/experimental.scala

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ package scala.annotation
55
* @see [[https://dotty.epfl.ch/docs/reference/other-new-features/experimental-defs]]
66
* @syntax markdown
77
*/
8-
@deprecatedInheritance("Scheduled for being final in the future", "3.4.0")
9-
class experimental(message: String) extends StaticAnnotation:
8+
final class experimental(message: String) extends StaticAnnotation:
109
def this() = this("")
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package scala.annotation
22

3-
@deprecatedInheritance("Scheduled for being final in the future", "3.4.0")
4-
class experimental extends StaticAnnotation
3+
final class experimental extends StaticAnnotation

project/MiMaFilters.scala

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ object MiMaFilters {
99
// Additions that require a new minor version of the library
1010
Build.mimaPreviousDottyVersion -> Seq(
1111
ProblemFilters.exclude[DirectMissingMethodProblem]("scala.annotation.experimental.this"),
12+
ProblemFilters.exclude[FinalClassProblem]("scala.annotation.experimental"),
1213
),
1314

1415
// Additions since last LTS
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
class MyExperimentalAnnot extends scala.annotation.experimental // error

tests/pos/experimentalExperimental.scala

-1
This file was deleted.

0 commit comments

Comments
 (0)