diff options
author | Martin Odersky <odersky@gmail.com> | 2013-10-24 13:29:58 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-10-24 13:29:58 +0200 |
commit | e7674eae7d8ea1537196df0012add4a6a124c344 (patch) | |
tree | c8fb096e6631d9749d107a4cdc5e30642936fef4 /tests/pos | |
parent | 44f0976487792760f0dc7fc8aa3dc1ba4ac52b7f (diff) | |
download | dotty-e7674eae7d8ea1537196df0012add4a6a124c344.tar.gz dotty-e7674eae7d8ea1537196df0012add4a6a124c344.tar.bz2 dotty-e7674eae7d8ea1537196df0012add4a6a124c344.zip |
New test case: map and filter now seem to work.
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/collections.scala | 5 |
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 |