diff options
Diffstat (limited to 'tests/pos/collections.scala')
-rw-r--r-- | tests/pos/collections.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/pos/collections.scala b/tests/pos/collections.scala index e91a90a90..71848c14d 100644 --- a/tests/pos/collections.scala +++ b/tests/pos/collections.scala @@ -2,6 +2,9 @@ import scala.collection.generic.CanBuildFrom object collections { + val s = Set(1, 2, 3) + val ss = s map (_ + 1) + val cbf: CanBuildFrom[List, Int, List[Int]] = scala.collection.immutable.List.canBuildFrom val nil = Nil @@ -13,5 +16,4 @@ object collections { val ys = ints3 map (x => x + 1) val zs = ys filter (y => y != 0) - }
\ No newline at end of file |