File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 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 {
9696 case _ => notMatched
9797 }
9898
99- private given treeListOps : extension (scrutinees : List [Tree ]) {
99+ private extension treeListOps on (scrutinees : List [Tree ]) {
100100 /** Check that all trees match with =?= and concatenate the results with && */
101101 def =?= (patterns : List [Tree ])(using Context , Env ): Matching =
102102 matchLists(scrutinees, patterns)(_ =?= _)
103103 }
104104
105- private given treeOps : extension (scrutinee0 : Tree ) {
105+ private extension treeOps on (scrutinee0 : Tree ) {
106106
107107 /** Check that the trees match and return the contents from the pattern holes.
108108 * 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 =>
419419 // QUOTES //
420420 // //////////////
421421
422- given QuotedExprOps : extension (expr : scala.quoted.Expr [? ]) {
422+ extension QuotedExprOps on (expr : scala.quoted.Expr [? ]) {
423423 /** View this expression `quoted.Expr[T]` as a `Term` */
424424 def unseal (using ctx : Context ): Term =
425425 internal.QuotedExpr_unseal (expr)
You can’t perform that action at this time.
0 commit comments