summaryrefslogtreecommitdiff
path: root/test/files/neg/t8182.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t8182.scala')
-rw-r--r--test/files/neg/t8182.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/neg/t8182.scala b/test/files/neg/t8182.scala
new file mode 100644
index 0000000000..1b3bc9821f
--- /dev/null
+++ b/test/files/neg/t8182.scala
@@ -0,0 +1,18 @@
+
+trait X {
+ val a b // something missing
+}
+trait Y {
+ val a b[B] // error then continue as for X
+}
+trait Z {
+ (null: Any) match {
+ case a b[B] => // bumpy recovery
+ }
+}
+object B { def unapply[W](a: Any) = Some((1,2)) }
+trait Z {
+ (null: Any) match {
+ case a B[T] b =>
+ }
+}