aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t3353.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t3353.scala')
-rw-r--r--tests/run/t3353.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/run/t3353.scala b/tests/run/t3353.scala
new file mode 100644
index 000000000..472723b3c
--- /dev/null
+++ b/tests/run/t3353.scala
@@ -0,0 +1,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)
+ }
+}