We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 406ff9d + 0fce48e commit 8443c16Copy full SHA for 8443c16
docs/docs/reference/contextual/extension-methods.md
@@ -78,7 +78,7 @@ Type parameters on extensions can also be combined with type parameters on the m
78
themselves:
79
```scala
80
extension [T](xs: List[T])
81
- def sumBy[B](f: A => B)(using Numeric[B]): B = ...
+ def sumBy[U](f: T => U)(using Numeric[U]): U = ...
82
```
83
84
Type arguments matching method type parameters are passed as usual:
0 commit comments