summaryrefslogtreecommitdiff
path: root/test/files/run/withIndex.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/withIndex.scala')
-rw-r--r--test/files/run/withIndex.scala7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/files/run/withIndex.scala b/test/files/run/withIndex.scala
index fd79cd808a..d06dde89f0 100644
--- a/test/files/run/withIndex.scala
+++ b/test/files/run/withIndex.scala
@@ -9,7 +9,12 @@ object Test {
Console.println(lst.zipWithIndex.toList)
Console.println(itr.zipWithIndex.toList)
Console.println(str.zipWithIndex.toList)
- assert(ary.zipWithIndex.isInstanceOf[Array[Pair[String,Int]]])
+ assert {
+ ary.zipWithIndex match {
+ case _: Array[Pair[String,Int]] => true
+ case _ => false
+ }
+ }
val emptyArray = new Array[String](0)
val emptyList: List[String] = Nil