aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t3353.scala
blob: 472723b3c4857606978c95b79ee25514807e4266 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
object Test extends dotty.runtime.LegacyApp {

  "foo" match {
    case Matcher(result) => println(result)
  }

  object Matcher{
    def unapply(s: String)(implicit secondParam: Option[String] = None) = Some("Got: " + s + " and " + secondParam)
  }
}