diff options
Diffstat (limited to 'tests/untried/pos/t8128.scala')
-rw-r--r-- | tests/untried/pos/t8128.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/untried/pos/t8128.scala b/tests/untried/pos/t8128.scala new file mode 100644 index 000000000..b6f76691b --- /dev/null +++ b/tests/untried/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 _ => + } +} |