From e7674eae7d8ea1537196df0012add4a6a124c344 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 24 Oct 2013 13:29:58 +0200 Subject: New test case: map and filter now seem to work. --- tests/pos/collections.scala | 5 +++-- 1 file 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 -- cgit v1.2.3