summaryrefslogtreecommitdiff
path: root/test/files/pos/t8128.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t8128.scala')
-rw-r--r--test/files/pos/t8128.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/t8128.scala b/test/files/pos/t8128.scala
new file mode 100644
index 0000000000..b6f76691b0
--- /dev/null
+++ b/test/files/pos/t8128.scala
@@ -0,0 +1,15 @@
+object G {
+ def unapply(m: Any): Option[_] = Some("")
+}
+
+object H {
+ def unapplySeq(m: Any): Option[Seq[_]] = None
+}
+
+object Test {
+ (0: Any) match {
+ case G(v) => v
+ case H(v) => v
+ case _ =>
+ }
+}