diff options
author | Martin Odersky <odersky@gmail.com> | 2016-03-09 13:56:00 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-03-09 13:56:00 +0100 |
commit | f63110edc7ab8299ef1cd33b2b156e7987e35931 (patch) | |
tree | aecc34b5da86b6cfc025daef1028232293cb4b0f /tests/run | |
parent | 945ee917aeaada9b3f0c1e1cf2e6f85d4a36300b (diff) | |
download | dotty-f63110edc7ab8299ef1cd33b2b156e7987e35931.tar.gz dotty-f63110edc7ab8299ef1cd33b2b156e7987e35931.tar.bz2 dotty-f63110edc7ab8299ef1cd33b2b156e7987e35931.zip |
Make use of better overload resolution in collections strawman test
Diffstat (limited to 'tests/run')
-rw-r--r-- | tests/run/CollectionTests.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run/CollectionTests.scala b/tests/run/CollectionTests.scala index 716c46d5e..4696774d1 100644 --- a/tests/run/CollectionTests.scala +++ b/tests/run/CollectionTests.scala @@ -120,9 +120,9 @@ object Test { val ys7: String = xs7 val xs8 = xs.drop(2) val ys8: String = xs8 - val xs9 = xs.map((_: Char) + 1) // !!! need a language change to make this work without the : Char + val xs9 = xs.map(_ + 1) // !!! need a language change to make this work without the : Char val ys9: Seq[Int] = xs9 - val xs9a = xs.map((_: Char).toUpper) // !!! need a language change to make this work without the : Char + 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 ys10: String = xs10 |