summaryrefslogtreecommitdiff
path: root/test/files/neg/t5839.check
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@gmail.com>2012-06-27 10:07:15 +0200
committerHubert Plociniczak <hubert.plociniczak@gmail.com>2012-06-27 10:07:15 +0200
commit6ad6e3b6e9547caeebd66061a52294914c667219 (patch)
tree4cd2c2f8641616ed1a3208a9a439adf54b10da06 /test/files/neg/t5839.check
parent5a7bbfe035ecb64acd57fc66ea0d874ad02c31ff (diff)
downloadscala-6ad6e3b6e9547caeebd66061a52294914c667219.tar.gz
scala-6ad6e3b6e9547caeebd66061a52294914c667219.tar.bz2
scala-6ad6e3b6e9547caeebd66061a52294914c667219.zip
Test that closes SI-5839. Bug itself most probably fixed by #602
Diffstat (limited to 'test/files/neg/t5839.check')
-rw-r--r--test/files/neg/t5839.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t5839.check b/test/files/neg/t5839.check
new file mode 100644
index 0000000000..d4b125bd1e
--- /dev/null
+++ b/test/files/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