diff options
Diffstat (limited to 'tests/pos/typers.scala')
-rw-r--r-- | tests/pos/typers.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pos/typers.scala b/tests/pos/typers.scala index 1626731bd..edfd7b218 100644 --- a/tests/pos/typers.scala +++ b/tests/pos/typers.scala @@ -5,6 +5,12 @@ import collection.mutable._ object typers { + val names = List("a", "b", "c") + val ints = List(1, 2, 3) + + for ((name, n) <- (names, ints).zipped) + println(name.length + n) + val entries = Array("abc", "def") for ((x, i) <- entries.zipWithIndex) |