diff options
author | Martin Odersky <odersky@gmail.com> | 2013-12-08 16:06:38 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-12-08 16:06:38 +0100 |
commit | 519a99ab7f5d6a20d985fa0b515567d43c4c802a (patch) | |
tree | d19f78285bfc023f8aae942d9017384a25b7b548 /tests/pos/collections.scala | |
parent | b5be3e97d5e2455966f170b7cd0baba82c8fae12 (diff) | |
download | dotty-519a99ab7f5d6a20d985fa0b515567d43c4c802a.tar.gz dotty-519a99ab7f5d6a20d985fa0b515567d43c4c802a.tar.bz2 dotty-519a99ab7f5d6a20d985fa0b515567d43c4c802a.zip |
Fixes to desugaring of for-expressions with embedded aliases.
Diffstat (limited to 'tests/pos/collections.scala')
-rw-r--r-- | tests/pos/collections.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/pos/collections.scala b/tests/pos/collections.scala index 71848c14d..910940e77 100644 --- a/tests/pos/collections.scala +++ b/tests/pos/collections.scala @@ -2,6 +2,8 @@ import scala.collection.generic.CanBuildFrom object collections { + List(1, 2, 3) map (x => 2) + val s = Set(1, 2, 3) val ss = s map (_ + 1) @@ -16,4 +18,5 @@ object collections { val ys = ints3 map (x => x + 1) val zs = ys filter (y => y != 0) + }
\ No newline at end of file |