Skip to content

Commit

Permalink
Stabilize Quotes defn.PolyFunction (#18480)
Browse files Browse the repository at this point in the history
  • Loading branch information
smarter authored Oct 6, 2023
2 parents d788ef2 + 59d69db commit 5045b8f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion library/src/scala/quoted/Quotes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4337,7 +4337,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
def FunctionClass(arity: Int, isContextual: Boolean): Symbol

/** The `scala.PolyFunction` built-in trait. */
@experimental
def PolyFunctionClass: Symbol

/** Function-like object that maps arity to symbols for classes `scala.TupleX`.
Expand Down
4 changes: 2 additions & 2 deletions project/MiMaFilters.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ 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
ProblemFilters.exclude[ReversedMissingMethodProblem]("scala.quoted.Quotes#reflectModule#defnModule.FunctionClass"),
ProblemFilters.exclude[ReversedMissingMethodProblem]("scala.quoted.Quotes#reflectModule#defnModule.PolyFunctionClass"),
)
val TastyCore: Seq[ProblemFilter] = Seq(
ProblemFilters.exclude[DirectMissingMethodProblem]("dotty.tools.tasty.TastyFormat.EXPLICITtpt"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ val experimentalDefinitionInLibrary = Set(
"scala.quoted.Quotes.reflectModule.MethodTypeMethods.hasErasedParams",
"scala.quoted.Quotes.reflectModule.TermParamClauseMethods.erasedArgs",
"scala.quoted.Quotes.reflectModule.TermParamClauseMethods.hasErasedArgs",
"scala.quoted.Quotes.reflectModule.defnModule.PolyFunctionClass",

// New feature: reverse method on Tuple
"scala.Tuple.reverse",
Expand Down

0 comments on commit 5045b8f

Please sign in to comment.