aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t5839.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t5839.check')
-rw-r--r--tests/untried/neg/t5839.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/untried/neg/t5839.check b/tests/untried/neg/t5839.check
new file mode 100644
index 000000000..d4b125bd1
--- /dev/null
+++ b/tests/untried/neg/t5839.check
@@ -0,0 +1,6 @@
+t5839.scala:5: error: type mismatch;
+ found : (x: String => String)Int <and> (x: Int)Int
+ required: Int => String
+ val x: String = goo(foo _)
+ ^
+one error found