summaryrefslogtreecommitdiff
path: root/test/files/neg/wrong-args-for-none.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/wrong-args-for-none.scala')
-rw-r--r--test/files/neg/wrong-args-for-none.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/wrong-args-for-none.scala b/test/files/neg/wrong-args-for-none.scala
new file mode 100644
index 0000000000..1caa4782a3
--- /dev/null
+++ b/test/files/neg/wrong-args-for-none.scala
@@ -0,0 +1,6 @@
+object Test {
+ case class Foo(x: Int, y: Int)
+ case class Bar(x: AnyRef)
+
+ def f(x: Any) = x match { case Bar(Foo(5)) => }
+}