File tree 2 files changed +4
-4
lines changed
docs/docs/reference/contextual
library/src/scala/tasty/reflect
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ given listOps: extension [T](xs: List[T]) {
139
139
}
140
140
141
141
given extension [T ](xs : List [T ])(given Ordering [T ]) {
142
- def largest (n : Int ) = xs.sort .takeRight(n)
142
+ def largest (n : Int ) = xs.sorted .takeRight(n)
143
143
}
144
144
```
145
145
If a given extension is anonymous (as in the last clause), its name is synthesized from the name of the first defined extension method.
@@ -158,7 +158,7 @@ given listOps: AnyRef {
158
158
}
159
159
given given_largest_of_List_T : AnyRef {
160
160
def [T ](xs : List [T ]) largest (given Ordering [T ])(n : Int ) =
161
- xs.sort .takeRight(n)
161
+ xs.sorted .takeRight(n)
162
162
}
163
163
```
164
164
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ trait ImplicitsOps extends Core {
10
10
internal.matchImplicitSearchSuccess(isr)
11
11
}
12
12
13
- given successOps : (self : ImplicitSearchSuccess ) {
13
+ given SuccessOps : (self : ImplicitSearchSuccess ) {
14
14
def tree (given ctx : Context ): Term = internal.ImplicitSearchSuccess_tree (self)
15
15
}
16
16
@@ -19,7 +19,7 @@ trait ImplicitsOps extends Core {
19
19
internal.matchImplicitSearchFailure(isr)
20
20
}
21
21
22
- given failureOps : (self : ImplicitSearchFailure ) {
22
+ given FailureOps : (self : ImplicitSearchFailure ) {
23
23
def explanation (given ctx : Context ): String = internal.ImplicitSearchFailure_explanation (self)
24
24
}
25
25
You can’t perform that action at this time.
0 commit comments