File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
docs/docs/reference/contextual
library/src/scala/tasty/reflect Expand file tree Collapse file tree 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]) {
139139}
140140
141141given 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)
143143}
144144```
145145If 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 {
158158}
159159given given_largest_of_List_T : AnyRef {
160160 def [T ](xs : List [T ]) largest (given Ordering [T ])(n : Int ) =
161- xs.sort .takeRight(n)
161+ xs.sorted .takeRight(n)
162162}
163163```
164164
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ trait ImplicitsOps extends Core {
1010 internal.matchImplicitSearchSuccess(isr)
1111 }
1212
13- given successOps : (self : ImplicitSearchSuccess ) {
13+ given SuccessOps : (self : ImplicitSearchSuccess ) {
1414 def tree (given ctx : Context ): Term = internal.ImplicitSearchSuccess_tree (self)
1515 }
1616
@@ -19,7 +19,7 @@ trait ImplicitsOps extends Core {
1919 internal.matchImplicitSearchFailure(isr)
2020 }
2121
22- given failureOps : (self : ImplicitSearchFailure ) {
22+ given FailureOps : (self : ImplicitSearchFailure ) {
2323 def explanation (given ctx : Context ): String = internal.ImplicitSearchFailure_explanation (self)
2424 }
2525
You can’t perform that action at this time.
0 commit comments