summaryrefslogtreecommitdiff
path: root/test/files/run/iterators.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/iterators.scala')
-rw-r--r--test/files/run/iterators.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/iterators.scala b/test/files/run/iterators.scala
index 5879d38df3..b7dc16237a 100644
--- a/test/files/run/iterators.scala
+++ b/test/files/run/iterators.scala
@@ -93,8 +93,8 @@ object Test {
}
def check_findIndexOf: String = {
- val i = List(1, 2, 3, 4, 5).findIndexOf { x: Int => x >= 4 }
- val j = List(1, 2, 3, 4, 5).findIndexOf { x: Int => x >= 16 }
+ val i = List(1, 2, 3, 4, 5).indexWhere { x: Int => x >= 4 }
+ val j = List(1, 2, 3, 4, 5).indexWhere { x: Int => x >= 16 }
"" + i + "x" + j
}