diff options
Diffstat (limited to 'test/files/run/t7868.scala')
-rw-r--r-- | test/files/run/t7868.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/t7868.scala b/test/files/run/t7868.scala new file mode 100644 index 0000000000..1f938adf31 --- /dev/null +++ b/test/files/run/t7868.scala @@ -0,0 +1,13 @@ +object A { + def unapply(n: Int): Option[Int] = Some(n) + + def run = (0: Short) match { + case A(_) => + case _ => + } +} + + +object Test extends App { + A.run +} |