summaryrefslogtreecommitdiff
path: root/test/files/pos/t8429.scala
blob: a2d32637e1f7b74b2cfab6a22d7a1a84c2173101 (plain) (blame)
1
2
3
4
5
6
7
trait Must {  def musta(str: String, i: Int): Unit }

object Mustare {
  def takesM(m: Must) = ???
  takesM{ (a, b) => println } // ok
  takesM{ case (a: String, b: Int) => println("") } // should also be accepted
}