From 4609167aeed205923431c61c054b5ed6eeb5f269 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Thu, 14 Dec 2023 11:09:47 +0100 Subject: [PATCH] Stabilize reflect `paramVariance` --- library/src/scala/quoted/Quotes.scala | 2 -- tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala | 2 -- 2 files changed, 4 deletions(-) diff --git a/library/src/scala/quoted/Quotes.scala b/library/src/scala/quoted/Quotes.scala index 3222391fefb8..1d708aa7328d 100644 --- a/library/src/scala/quoted/Quotes.scala +++ b/library/src/scala/quoted/Quotes.scala @@ -3295,7 +3295,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching => * * Variance flags can be one of `Flags.{Covariant, Contravariant, EmptyFlags}`. */ - @experimental def paramVariances: List[Flags] end extension end TypeLambdaMethods @@ -4123,7 +4122,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching => * Variance flags can be one of `Flags.{Covariant, Contravariant, EmptyFlags}`. * If this is not the symbol of a type parameter the result is `Flags.EmptyFlags`. */ - @experimental def paramVariance: Flags /** Signature of this definition */ diff --git a/tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala b/tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala index afa10ad6af6f..4b119f3ac727 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 - "scala.quoted.Quotes.reflectModule.TypeLambdaMethods.paramVariances", - "scala.quoted.Quotes.reflectModule.SymbolMethods.paramVariance", // Can be stabilized in 3.4.0 (unsure) or later "scala.quoted.Quotes.reflectModule.CompilationInfoModule.XmacroSettings", "scala.quoted.Quotes.reflectModule.FlagsModule.JavaAnnotation",