summaryrefslogtreecommitdiff
path: root/test/files/neg/t960.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t960.scala')
-rw-r--r--test/files/neg/t960.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/t960.scala b/test/files/neg/t960.scala
index 5101cf8433..36909626c1 100644
--- a/test/files/neg/t960.scala
+++ b/test/files/neg/t960.scala
@@ -17,4 +17,8 @@ object List {
def foo[a](xs: List[a]) = xs match {
case List(x, xs) => 7
}
+
+ def bar(xs: Any) = xs match { // test error message OverloadedUnapplyError
+ case List(x, xs) => 7
+ }
}