We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 945ee91 commit f63110eCopy full SHA for f63110e
tests/run/CollectionTests.scala
@@ -120,9 +120,9 @@ object Test {
120
val ys7: String = xs7
121
val xs8 = xs.drop(2)
122
val ys8: String = xs8
123
- 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
124
val ys9: Seq[Int] = xs9
125
- 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
126
val ys9a: String = xs9a
127
val xs10 = xs.flatMap((x: Char) => s"$x,$x")
128
val ys10: String = xs10
0 commit comments