Skip to content

Commit 03eab2b

Browse files
committed
Deprecate Quotes {MethodType,TermParamClause}.isErased
These methods should not have been stabiliezed in the first place. Now that we can mark individual parameters as erased, this method is fundamentally broken.
1 parent 6e45dd7 commit 03eab2b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

library/src/scala/quoted/Quotes.scala

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2416,10 +2416,8 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
24162416
/** Is this a given parameter clause `(using X1, ..., Xn)` or `(using x1: X1, ..., xn: Xn)` */
24172417
def isGiven: Boolean
24182418
/** Is this a erased parameter clause `(erased x1: X1, ..., xn: Xn)` */
2419-
// TODO:deprecate in 3.4 and stabilize `erasedArgs` and `hasErasedArgs`.
2420-
// @deprecated("Use `hasErasedArgs`","3.4")
2419+
@deprecated("Use `hasErasedArgs` and `erasedArgs`", "3.4")
24212420
def isErased: Boolean
2422-
24232421
/** List of `erased` flags for each parameter of the clause */
24242422
@experimental
24252423
def erasedArgs: List[Boolean]
@@ -3197,10 +3195,8 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
31973195
/** Is this the type of using parameter clause `(implicit X1, ..., Xn)`, `(using X1, ..., Xn)` or `(using x1: X1, ..., xn: Xn)` */
31983196
def isImplicit: Boolean
31993197
/** Is this the type of erased parameter clause `(erased x1: X1, ..., xn: Xn)` */
3200-
// TODO:deprecate in 3.4 and stabilize `erasedParams` and `hasErasedParams`.
3201-
// @deprecated("Use `hasErasedParams`","3.4")
3198+
@deprecated("Use `hasErasedParams` and `erasedParams`", "3.4")
32023199
def isErased: Boolean
3203-
32043200
/** List of `erased` flags for each parameters of the clause */
32053201
@experimental
32063202
def erasedParams: List[Boolean]
@@ -4318,7 +4314,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
43184314
* - ...
43194315
* - Nth element is `FunctionN`
43204316
*/
4321-
@deprecated("Use overload of `FunctionClass` with 1 or 2 arguments","3.4")
4317+
@deprecated("Use overload of `FunctionClass` with 1 or 2 arguments", "3.4")
43224318
def FunctionClass(arity: Int, isImplicit: Boolean = false, isErased: Boolean = false): Symbol
43234319

43244320
/** Class symbol of a function class `scala.FunctionN`.

0 commit comments

Comments
 (0)