From 519a99ab7f5d6a20d985fa0b515567d43c4c802a Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 8 Dec 2013 16:06:38 +0100 Subject: Fixes to desugaring of for-expressions with embedded aliases. --- tests/pos/collections.scala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/pos/collections.scala') 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 -- cgit v1.2.3