aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-10-24 13:29:58 +0200
committerMartin Odersky <odersky@gmail.com>2013-10-24 13:29:58 +0200
commite7674eae7d8ea1537196df0012add4a6a124c344 (patch)
treec8fb096e6631d9749d107a4cdc5e30642936fef4
parent44f0976487792760f0dc7fc8aa3dc1ba4ac52b7f (diff)
downloaddotty-e7674eae7d8ea1537196df0012add4a6a124c344.tar.gz
dotty-e7674eae7d8ea1537196df0012add4a6a124c344.tar.bz2
dotty-e7674eae7d8ea1537196df0012add4a6a124c344.zip
New test case: map and filter now seem to work.
-rw-r--r--tests/pos/collections.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/pos/collections.scala b/tests/pos/collections.scala
index 21c9e2c22..0d00b91fe 100644
--- a/tests/pos/collections.scala
+++ b/tests/pos/collections.scala
@@ -9,7 +9,8 @@ object collections {
val ints2 = 1 :: 2 :: Nil
val ints3: List[Int] = ints2
val f = (x: Int) => x + 1
-
- val ys = ints3 map ((x: Int) => x + 1)
+
+ val ys = ints3 map (x => x + 1)
+ val zs = ys filter (y => y != 0)
} \ No newline at end of file