Skip to content

Commit 8d9da73

Browse files
authored
Deprecate Quotes {MethodType,TermParamClause}.isErased (#18479)
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. Related to #18472
2 parents 8ed4016 + 7726056 commit 8d9da73

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
@@ -2442,10 +2442,8 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
24422442
/** Is this a given parameter clause `(using X1, ..., Xn)` or `(using x1: X1, ..., xn: Xn)` */
24432443
def isGiven: Boolean
24442444
/** Is this a erased parameter clause `(erased x1: X1, ..., xn: Xn)` */
2445-
// TODO:deprecate in 3.4 and stabilize `erasedArgs` and `hasErasedArgs`.
2446-
// @deprecated("Use `hasErasedArgs`","3.4")
2445+
@deprecated("Use `hasErasedArgs` and `erasedArgs`", "3.4")
24472446
def isErased: Boolean
2448-
24492447
/** List of `erased` flags for each parameter of the clause */
24502448
@experimental
24512449
def erasedArgs: List[Boolean]
@@ -3226,10 +3224,8 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
32263224
/** Is this the type of using parameter clause `(implicit X1, ..., Xn)`, `(using X1, ..., Xn)` or `(using x1: X1, ..., xn: Xn)` */
32273225
def isImplicit: Boolean
32283226
/** Is this the type of erased parameter clause `(erased x1: X1, ..., xn: Xn)` */
3229-
// TODO:deprecate in 3.4 and stabilize `erasedParams` and `hasErasedParams`.
3230-
// @deprecated("Use `hasErasedParams`","3.4")
3227+
@deprecated("Use `hasErasedParams` and `erasedParams`", "3.4")
32313228
def isErased: Boolean
3232-
32333229
/** List of `erased` flags for each parameters of the clause */
32343230
@experimental
32353231
def erasedParams: List[Boolean]
@@ -4364,7 +4360,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
43644360
* - ...
43654361
* - Nth element is `FunctionN`
43664362
*/
4367-
@deprecated("Use overload of `FunctionClass` with 1 or 2 arguments","3.4")
4363+
@deprecated("Use overload of `FunctionClass` with 1 or 2 arguments", "3.4")
43684364
def FunctionClass(arity: Int, isImplicit: Boolean = false, isErased: Boolean = false): Symbol
43694365

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

0 commit comments

Comments
 (0)