diff --git a/library/src/scala/quoted/Quotes.scala b/library/src/scala/quoted/Quotes.scala index 04414c10d1b5..15df4a08e1f0 100644 --- a/library/src/scala/quoted/Quotes.scala +++ b/library/src/scala/quoted/Quotes.scala @@ -4318,8 +4318,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching => * - ... * - Nth element is `FunctionN` */ - // TODO: deprecate in 3.4 and stabilize FunctionClass(Int)/FunctionClass(Int,Boolean) - // @deprecated("Use overload of `FunctionClass` with 1 or 2 arguments","3.4") + @deprecated("Use overload of `FunctionClass` with 1 or 2 arguments","3.4") def FunctionClass(arity: Int, isImplicit: Boolean = false, isErased: Boolean = false): Symbol /** Class symbol of a function class `scala.FunctionN`. @@ -4327,7 +4326,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching => * @param arity the arity of the function where `0 <= arity` * @return class symbol of `scala.FunctionN` where `N == arity` */ - @experimental def FunctionClass(arity: Int): Symbol /** Class symbol of a context function class `scala.FunctionN` or `scala.ContextFunctionN`. @@ -4336,7 +4334,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching => * @param isContextual if it is a `scala.ContextFunctionN` * @return class symbol of `scala.FunctionN` or `scala.ContextFunctionN` where `N == arity` */ - @experimental def FunctionClass(arity: Int, isContextual: Boolean): Symbol /** The `scala.PolyFunction` built-in trait. */ diff --git a/project/MiMaFilters.scala b/project/MiMaFilters.scala index 575bef17fce5..fc7b1e29bafc 100644 --- a/project/MiMaFilters.scala +++ b/project/MiMaFilters.scala @@ -6,6 +6,7 @@ object MiMaFilters { // New API in 3.4.X ProblemFilters.exclude[ReversedMissingMethodProblem]("scala.quoted.Quotes#reflectModule.ValOrDefDefTypeTest"), ProblemFilters.exclude[ReversedMissingMethodProblem]("scala.quoted.Quotes#reflectModule.ValOrDefDefMethods"), + ProblemFilters.exclude[ReversedMissingMethodProblem]("scala.quoted.Quotes#reflectModule#defnModule.FunctionClass") // New API in 3.4.X ) val TastyCore: Seq[ProblemFilter] = Seq( diff --git a/tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala b/tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala index e63393d49e67..d30a58954bc4 100644 --- a/tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala +++ b/tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala @@ -68,8 +68,6 @@ val experimentalDefinitionInLibrary = Set( "scala.annotation.init$.region", //// New APIs: Quotes - // Should be stabilized in 3.4.0 - "scala.quoted.Quotes.reflectModule.defnModule.FunctionClass", "scala.quoted.Quotes.reflectModule.FlagsModule.AbsOverride", // Can be stabilized in 3.4.0 (unsure) or later "scala.quoted.Quotes.reflectModule.CompilationInfoModule.XmacroSettings",