From 8cb73c0f5ca8bd809d0b9d7549951678f2240a61 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sat, 16 Apr 2016 13:55:49 +0200 Subject: Drop type annotation in collection test --- tests/run/colltest5/CollectionTests_2.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/run/colltest5/CollectionTests_2.scala b/tests/run/colltest5/CollectionTests_2.scala index e7b34d292..cdff2e260 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: Char) => s"$x,$x") + val xs10 = xs.flatMap(x => s"$x,$x") val ys10: String = xs10 val xs11 = xs ++ xs val ys11: String = xs11 -- cgit v1.2.3