Skip to content

Commit f63110e

Browse files
committed
Make use of better overload resolution in collections strawman test
1 parent 945ee91 commit f63110e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/run/CollectionTests.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ object Test {
120120
val ys7: String = xs7
121121
val xs8 = xs.drop(2)
122122
val ys8: String = xs8
123-
val xs9 = xs.map((_: Char) + 1) // !!! need a language change to make this work without the : Char
123+
val xs9 = xs.map(_ + 1) // !!! need a language change to make this work without the : Char
124124
val ys9: Seq[Int] = xs9
125-
val xs9a = xs.map((_: Char).toUpper) // !!! need a language change to make this work without the : Char
125+
val xs9a = xs.map(_.toUpper) // !!! need a language change to make this work without the : Char
126126
val ys9a: String = xs9a
127127
val xs10 = xs.flatMap((x: Char) => s"$x,$x")
128128
val ys10: String = xs10

0 commit comments

Comments
 (0)