summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@gmail.com>2012-05-21 14:35:49 +0200
committerHubert Plociniczak <hubert.plociniczak@gmail.com>2012-05-21 14:35:49 +0200
commitbbfbd6694d564552a6a8d903dc5d6e34f5976c2b (patch)
tree8b0cbcfe0d73b6017de68388947fa8bfc26dacd5 /test/files
parentef7708812fac32ca0c2a05330222a6b0806c9054 (diff)
downloadscala-bbfbd6694d564552a6a8d903dc5d6e34f5976c2b.tar.gz
scala-bbfbd6694d564552a6a8d903dc5d6e34f5976c2b.tar.bz2
scala-bbfbd6694d564552a6a8d903dc5d6e34f5976c2b.zip
Closes SI-5735, this could also potentially fix a SO problem that @adriaanm was experiencing in IDE but could not reproduce it.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/neg/t5735.check6
-rw-r--r--test/files/neg/t5735.scala7
2 files changed, 13 insertions, 0 deletions
diff --git a/test/files/neg/t5735.check b/test/files/neg/t5735.check
new file mode 100644
index 0000000000..f6e0028044
--- /dev/null
+++ b/test/files/neg/t5735.check
@@ -0,0 +1,6 @@
+t5735.scala:6: error: type mismatch;
+ found : (x: Int)Int <and> => String
+ required: Int
+ val z: Int = a
+ ^
+one error found
diff --git a/test/files/neg/t5735.scala b/test/files/neg/t5735.scala
new file mode 100644
index 0000000000..fde71ff962
--- /dev/null
+++ b/test/files/neg/t5735.scala
@@ -0,0 +1,7 @@
+abstract class Base {
+ def a: String = "one"
+}
+class Clazz extends Base {
+ def a(x: Int): Int = 2
+ val z: Int = a
+}