diff options
author | Martin Odersky <odersky@gmail.com> | 2012-04-12 23:47:59 -0700 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2012-04-12 23:47:59 -0700 |
commit | 1c89ab72339fee8767869585f28811d5e2e437b1 (patch) | |
tree | c794d4b1d52af53beca4829c6ee159bd53d37af6 /src/library/scala/collection/GenSeqLike.scala | |
parent | a7a1e3a1959f26c9b44b40b328ef217b4ebdbaba (diff) | |
download | scala-1c89ab72339fee8767869585f28811d5e2e437b1.tar.gz scala-1c89ab72339fee8767869585f28811d5e2e437b1.tar.bz2 scala-1c89ab72339fee8767869585f28811d5e2e437b1.zip |
Enabling postfix ops feature warning, and working on libs to avoid them.
Diffstat (limited to 'src/library/scala/collection/GenSeqLike.scala')
-rw-r--r-- | src/library/scala/collection/GenSeqLike.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/scala/collection/GenSeqLike.scala b/src/library/scala/collection/GenSeqLike.scala index 755abcd2bf..71316cefc9 100644 --- a/src/library/scala/collection/GenSeqLike.scala +++ b/src/library/scala/collection/GenSeqLike.scala @@ -142,7 +142,7 @@ trait GenSeqLike[+A, +Repr] extends Any with GenIterableLike[A, Repr] with Equal * $mayNotTerminateInf * */ - def indexOf[B >: A](elem: B, from: Int): Int = indexWhere(elem ==, from) + def indexOf[B >: A](elem: B, from: Int): Int = indexWhere(elem == _, from) /** Finds index of last occurrence of some value in this $coll. * @@ -157,7 +157,7 @@ trait GenSeqLike[+A, +Repr] extends Any with GenIterableLike[A, Repr] with Equal * $willNotTerminateInf * */ - def lastIndexOf[B >: A](elem: B): Int = lastIndexWhere(elem ==) + def lastIndexOf[B >: A](elem: B): Int = lastIndexWhere(elem == _) /** Finds index of last occurrence of some value in this $coll before or at a given end index. * @@ -170,7 +170,7 @@ trait GenSeqLike[+A, +Repr] extends Any with GenIterableLike[A, Repr] with Equal * @usecase def lastIndexOf(elem: A, end: Int): Int * @inheritdoc */ - def lastIndexOf[B >: A](elem: B, end: Int): Int = lastIndexWhere(elem ==, end) + def lastIndexOf[B >: A](elem: B, end: Int): Int = lastIndexWhere(elem == _, end) /** Finds index of last element satisfying some predicate. * |