summaryrefslogtreecommitdiff
path: root/test/files/neg/t9629.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t9629.scala')
-rw-r--r--test/files/neg/t9629.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/neg/t9629.scala b/test/files/neg/t9629.scala
new file mode 100644
index 0000000000..2be2b039f2
--- /dev/null
+++ b/test/files/neg/t9629.scala
@@ -0,0 +1,12 @@
+class Test {
+ def foo(a: Any) {
+ a match {
+ case Option[Int] => // error was issued before
+ case Some(Option[Int]) => // error was skipped, patmat issued an internal error
+
+ // variations
+ case (_, Option[Int]) =>
+ case x @ (y @ Option[Int]) =>
+ }
+ }
+}