diff options
Diffstat (limited to 'tests/run/colltest5/CollectionTests_2.scala')
-rw-r--r-- | tests/run/colltest5/CollectionTests_2.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/run/colltest5/CollectionTests_2.scala b/tests/run/colltest5/CollectionTests_2.scala index cdff2e260..0961180ed 100644 --- a/tests/run/colltest5/CollectionTests_2.scala +++ b/tests/run/colltest5/CollectionTests_2.scala @@ -124,7 +124,7 @@ object Test { val ys9: Seq[Int] = xs9 val xs9a = xs.map(_.toUpper) // !!! need a language change to make this work without the : Char val ys9a: String = xs9a - val xs10 = xs.flatMap(x => s"$x,$x") + val xs10 = xs.flatMap((x: Char) => s"$x,$x") val ys10: String = xs10 val xs11 = xs ++ xs val ys11: String = xs11 @@ -161,9 +161,11 @@ object Test { def main(args: Array[String]) = { val ints = Cons(1, Cons(2, Cons(3, Nil))) val intsBuf = ints.to(ArrayBuffer) + val intsListBuf = ints.to(ListBuffer) val intsView = ints.view seqOps(ints) seqOps(intsBuf) + seqOps(intsListBuf) viewOps(intsView) stringOps("abc") } |