summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2012-05-22 15:56:17 -0700
committerAdriaan Moors <adriaan.moors@epfl.ch>2012-05-22 15:56:17 -0700
commitffd2602977ccbdea34f7c233299c89e1d9152c5d (patch)
treec9e734b1d9821f618513bdc674aca3647528174c /test
parent9dae0deb1cd5d1f0cdc81d45a2b681a65a709b0d (diff)
parentd8b83375379f35c90ca980ef6f1467937cc9764a (diff)
downloadscala-ffd2602977ccbdea34f7c233299c89e1d9152c5d.tar.gz
scala-ffd2602977ccbdea34f7c233299c89e1d9152c5d.tar.bz2
scala-ffd2602977ccbdea34f7c233299c89e1d9152c5d.zip
Merge pull request #602 from hubertp/issue/5735
Closes SI-5735. Review by @adriaanm.
Diffstat (limited to 'test')
-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
+}