@@ -419,32 +419,32 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
419
419
// QUOTES //
420
420
// //////////////
421
421
422
- implicit class QuotedExprAPI [ T ] (expr : scala.quoted.Expr [T ]) {
422
+ given QuotedExprOps : extension (expr : scala.quoted.Expr [? ]) {
423
423
/** View this expression `quoted.Expr[T]` as a `Term` */
424
424
def unseal (given ctx : Context ): Term =
425
425
internal.QuotedExpr_unseal (expr)
426
426
427
427
/** Checked cast to a `quoted.Expr[U]` */
428
- def cast [U : scala.quoted.Type ]( given ctx : Context ): scala.quoted.Expr [U ] =
428
+ def cast [U ]( given tp : scala.quoted.Type [ U ], ctx : Context ): scala.quoted.Expr [U ] =
429
429
internal.QuotedExpr_cast [U ](expr)
430
430
}
431
431
432
- implicit class QuotedTypeAPI [T <: AnyKind ](tpe : scala.quoted.Type [T ]) {
432
+ given QuotedTypeAPI : extension [T <: AnyKind ](tpe : scala.quoted.Type [T ]) {
433
433
/** View this expression `quoted.Type[T]` as a `TypeTree` */
434
434
def unseal (given ctx : Context ): TypeTree =
435
435
internal.QuotedType_unseal (tpe)
436
436
}
437
437
438
- implicit class TermToQuotedAPI (term : Term ) {
438
+ given TermToQuotedOps : extension (term : Term ) {
439
439
/** Convert `Term` to an `quoted.Expr[Any]` */
440
440
def seal (given ctx : Context ): scala.quoted.Expr [Any ] =
441
441
internal.QuotedExpr_seal (term)
442
442
}
443
443
444
- implicit class TypeToQuotedAPI (tpe : Type ) {
445
- /** Convert `Type` to an `quoted.Type[_]` */
446
- def seal (given ctx : Context ): scala.quoted.Type [_] =
447
- internal.QuotedType_seal (tpe)
444
+ given TypeToQuotedOps : extension (tpe : Type ) {
445
+ /** Convert `Type` to an `quoted.Type[_]` */
446
+ def seal (given ctx : Context ): scala.quoted.Type [_] =
447
+ internal.QuotedType_seal (tpe)
448
448
}
449
449
450
450
// ////////////
0 commit comments