summaryrefslogtreecommitdiff
path: root/test/files/neg/t7895.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t7895.scala')
-rw-r--r--test/files/neg/t7895.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t7895.scala b/test/files/neg/t7895.scala
new file mode 100644
index 0000000000..87a586a82d
--- /dev/null
+++ b/test/files/neg/t7895.scala
@@ -0,0 +1,6 @@
+class A {
+ (null: Any) match {
+ // We don't want "symbol not found errors" for `a` and `b` in the case body.
+ case Goop(a, b, c) => Tuple2(a, b)
+ }
+}