From ce20632da7dc5ef5d324e4eafd823b1d523b3e70 Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Thu, 23 Feb 2012 13:01:23 +0100 Subject: test for OverloadedUnapplyError --- test/files/neg/t960.scala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/files/neg/t960.scala') 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 + } } -- cgit v1.2.3