summaryrefslogtreecommitdiff
path: root/test/pending/neg/type-diagnostics.scala
blob: 7f9a151dcd7c003694c737e2d281cc3f171f892d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
object TooManyParens {
  def f = Map(1 -> 2).keySet()
  //
  // Confusion reigns!
  //
  // work/a.scala:27: error: not enough arguments for method apply: (elem: Int)Boolean in trait SetLike.
  // Unspecified value parameter elem.
  //   def f = Map(1 -> 2).keySet()
  //                             ^

}