From bbfbd6694d564552a6a8d903dc5d6e34f5976c2b Mon Sep 17 00:00:00 2001 From: Hubert Plociniczak Date: Mon, 21 May 2012 14:35:49 +0200 Subject: Closes SI-5735, this could also potentially fix a SO problem that @adriaanm was experiencing in IDE but could not reproduce it. --- test/files/neg/t5735.check | 6 ++++++ test/files/neg/t5735.scala | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 test/files/neg/t5735.check create mode 100644 test/files/neg/t5735.scala (limited to 'test') 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 => 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 +} -- cgit v1.2.3