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.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/files/run/withIndex.scala b/test/files/run/withIndex.scala
index 64e9259072..fd79cd808a 100644
--- a/test/files/run/withIndex.scala
+++ b/test/files/run/withIndex.scala
@@ -14,9 +14,11 @@ object Test {
val emptyArray = new Array[String](0)
val emptyList: List[String] = Nil
val emptyIterator = emptyList.elements
+ val emptyStream = Stream.empty
Console.println(emptyArray.zipWithIndex.toList)
Console.println(emptyList.zipWithIndex.toList)
Console.println(emptyIterator.zipWithIndex.toList)
+ Console.println(emptyStream.zipWithIndex.toList)
}
}