Skip to content

Commit

Permalink
Make experimental final
Browse files Browse the repository at this point in the history
  • Loading branch information
noti0na1 committed Apr 25, 2024
1 parent 1cf779c commit fc43000
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions library/src-bootstrapped/scala/annotation/experimental.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ package scala.annotation
* @see [[https://dotty.epfl.ch/docs/reference/other-new-features/experimental-defs]]
* @syntax markdown
*/
@deprecatedInheritance("Scheduled for being final in the future", "3.4.0")
class experimental(message: String) extends StaticAnnotation:
final class experimental(message: String) extends StaticAnnotation:
def this() = this("")
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
package scala.annotation

@deprecatedInheritance("Scheduled for being final in the future", "3.4.0")
class experimental extends StaticAnnotation
final class experimental extends StaticAnnotation
1 change: 1 addition & 0 deletions project/MiMaFilters.scala
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ object MiMaFilters {
ProblemFilters.exclude[ReversedMissingMethodProblem]("scala.quoted.Quotes#reflectModule#MethodTypeModule.apply"),
ProblemFilters.exclude[ReversedMissingMethodProblem]("scala.quoted.Quotes#reflectModule#MethodTypeMethods.methodTypeKind"),
ProblemFilters.exclude[ReversedMissingMethodProblem]("scala.quoted.Quotes#reflectModule#MethodTypeMethods.isContextual"),
ProblemFilters.exclude[FinalClassProblem]("scala.annotation.experimental"),
),

// Breaking changes since last LTS
Expand Down
1 change: 1 addition & 0 deletions tests/neg/experimentalExperimental.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
class MyExperimentalAnnot extends scala.annotation.experimental // error
1 change: 0 additions & 1 deletion tests/pos/experimentalExperimental.scala

This file was deleted.

0 comments on commit fc43000

Please sign in to comment.