summaryrefslogtreecommitdiff
path: root/test/files/neg/t5189.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t5189.check')
-rw-r--r--test/files/neg/t5189.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t5189.check b/test/files/neg/t5189.check
new file mode 100644
index 0000000000..7762f465dc
--- /dev/null
+++ b/test/files/neg/t5189.check
@@ -0,0 +1,6 @@
+t5189.scala:3: error: type mismatch;
+ found : Nothing => Any
+ required: Any => Any
+ def f(x: Any): Any => Any = x match { case Foo(bar) => bar }
+ ^
+one error found \ No newline at end of file