Skip to content

Commit fc43000

Browse files
committed
Make experimental final
1 parent 1cf779c commit fc43000

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

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

Lines changed: 1 addition & 2 deletions
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("")
Lines changed: 1 addition & 2 deletions
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ object MiMaFilters {
5656
ProblemFilters.exclude[ReversedMissingMethodProblem]("scala.quoted.Quotes#reflectModule#MethodTypeModule.apply"),
5757
ProblemFilters.exclude[ReversedMissingMethodProblem]("scala.quoted.Quotes#reflectModule#MethodTypeMethods.methodTypeKind"),
5858
ProblemFilters.exclude[ReversedMissingMethodProblem]("scala.quoted.Quotes#reflectModule#MethodTypeMethods.isContextual"),
59+
ProblemFilters.exclude[FinalClassProblem]("scala.annotation.experimental"),
5960
),
6061

6162
// Breaking changes since last LTS
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
class MyExperimentalAnnot extends scala.annotation.experimental // error

tests/pos/experimentalExperimental.scala

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)