Skip to content

Commit ce1bb20

Browse files
committed
Make ChainingOps keep its self private
.. to avoid giving Any type a self method.
1 parent 7fd5b3e commit ce1bb20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/util/ChainingOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ trait ChainingSyntax {
77

88
/** Adds chaining methods `tap` and `pipe` to every type.
99
*/
10-
final class ChainingOps[A](val self: A) extends AnyVal {
10+
final class ChainingOps[A](private val self: A) extends AnyVal {
1111
/** Applies `f` to the value for its side effects, and returns the original value.
1212
*
1313
* {{{

0 commit comments

Comments
 (0)