File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -96,13 +96,13 @@ private[quoted] object Matcher {
96
96
case _ => notMatched
97
97
}
98
98
99
- private given treeListOps : extension (scrutinees : List [Tree ]) {
99
+ private extension treeListOps on (scrutinees : List [Tree ]) {
100
100
/** Check that all trees match with =?= and concatenate the results with && */
101
101
def =?= (patterns : List [Tree ])(using Context , Env ): Matching =
102
102
matchLists(scrutinees, patterns)(_ =?= _)
103
103
}
104
104
105
- private given treeOps : extension (scrutinee0 : Tree ) {
105
+ private extension treeOps on (scrutinee0 : Tree ) {
106
106
107
107
/** Check that the trees match and return the contents from the pattern holes.
108
108
* Return None if the trees do not match otherwise return Some of a tuple containing all the contents in the holes.
Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
419
419
// QUOTES //
420
420
// //////////////
421
421
422
- given QuotedExprOps : extension (expr : scala.quoted.Expr [? ]) {
422
+ extension QuotedExprOps on (expr : scala.quoted.Expr [? ]) {
423
423
/** View this expression `quoted.Expr[T]` as a `Term` */
424
424
def unseal (using ctx : Context ): Term =
425
425
internal.QuotedExpr_unseal (expr)
You can’t perform that action at this time.
0 commit comments