diff options
author | Martin Odersky <odersky@gmail.com> | 2014-01-13 14:43:32 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-01-13 14:43:32 +0100 |
commit | a7de2380c1d0864a4b54a3e9630543bebeac2c31 (patch) | |
tree | 0f62678f6de2c1d6029bc5cd059225fad5311a93 /tests/pos | |
parent | 7a482f18a47945e118c3ab44697b8b8bebe4002a (diff) | |
download | dotty-a7de2380c1d0864a4b54a3e9630543bebeac2c31.tar.gz dotty-a7de2380c1d0864a4b54a3e9630543bebeac2c31.tar.bz2 dotty-a7de2380c1d0864a4b54a3e9630543bebeac2c31.zip |
Making some traces conditional on printers being enabled.
Diffstat (limited to 'tests/pos')
-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) |