Skip to content

Commit d8728be

Browse files
committed
Update to new extension syntax
1 parent bdc47ba commit d8728be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/src/scala/internal/quoted/Matcher.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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.

library/src/scala/tasty/Reflection.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)