Skip to content

Commit 38d2546

Browse files
author
qilab gamma
committed
add @deprecatedName
1 parent 35c8581 commit 38d2546

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/library/scala/collection/LinearSeqOptimized.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ trait LinearSeqOptimized[+A, +Repr <: LinearSeqOptimized[A, Repr]] extends Linea
117117
}
118118

119119
override /*TraversableLike*/
120-
def foldLeft[B](z: B)(op: (B, A) => B): B = {
120+
def foldLeft[B](z: B)(@deprecatedName('f) op: (B, A) => B): B = {
121121
var acc = z
122122
var these = this
123123
while (!these.isEmpty) {
@@ -128,12 +128,12 @@ trait LinearSeqOptimized[+A, +Repr <: LinearSeqOptimized[A, Repr]] extends Linea
128128
}
129129

130130
override /*IterableLike*/
131-
def foldRight[B](z: B)(op: (A, B) => B): B =
131+
def foldRight[B](z: B)(@deprecatedName('f) op: (A, B) => B): B =
132132
if (this.isEmpty) z
133133
else op(head, tail.foldRight(z)(op))
134134

135135
override /*TraversableLike*/
136-
def reduceLeft[B >: A](op: (B, A) => B): B =
136+
def reduceLeft[B >: A](@deprecatedName('f) op: (B, A) => B): B =
137137
if (isEmpty) throw new UnsupportedOperationException("empty.reduceLeft")
138138
else tail.foldLeft[B](head)(op)
139139

0 commit comments

Comments
 (0)