Skip to content

Commit 5292baa

Browse files
authored
Merge pull request scala#6946 from xuwei-k/ArrayOps-collectFirst
remove unnecessary ClassTag parameter of ArrayOps#collectFirst
2 parents f099d88 + d5332a4 commit 5292baa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library/scala/collection/ArrayOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ final class ArrayOps[A](val xs: Array[A]) extends AnyVal {
867867

868868
/** Finds the first element of the $coll for which the given partial function is defined, and applies the
869869
* partial function to it. */
870-
def collectFirst[B : ClassTag](f: PartialFunction[A, B]): Option[B] = {
870+
def collectFirst[B](f: PartialFunction[A, B]): Option[B] = {
871871
var i = 0
872872
var matched = true
873873
def d(x: A): B = {

0 commit comments

Comments
 (0)