aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/i1640.scala
blob: 78351a1d6f98161d6617b372967967a25c0325b0 (plain) (tree)
1
2
3
4



                                                            
object Test extends App {
  List(1, 2, 3) map (_ match { case x => x + 1 })
  List((1, 2)) x (_ match { case (x, z) => x + z }) // error
}