From 9b16201d2c982095c54b9803cee8c76b4f12024e Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 27 Apr 2010 16:36:39 +0000 Subject: Created TypeDiagnostics trait and have begun op... Created TypeDiagnostics trait and have begun opportunistically moving code into it. Along the way, some improvements to error messages. The situation described in ticket #2206 has always had an applicable error message, but it wasn't making it out to the user. More kinds of ambiguity are disambiguated, see the test cases. And overload errors are printed with some formatting so one has some hope of parsing. Review by odersky. --- test/files/neg/overload-msg.check | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/files/neg/overload-msg.check (limited to 'test/files/neg/overload-msg.check') diff --git a/test/files/neg/overload-msg.check b/test/files/neg/overload-msg.check new file mode 100644 index 0000000000..780830bff9 --- /dev/null +++ b/test/files/neg/overload-msg.check @@ -0,0 +1,13 @@ +overload-msg.scala:3: error: overloaded method value + with alternatives: + (Double)Double + (Float)Float + (Long)Long + (scala.Int)scala.Int + (Char)scala.Int + (Short)scala.Int + (Byte)scala.Int + (java.lang.String)java.lang.String + cannot be applied to (Int(in method f)) + def f[Int](y: Int) = x + y + ^ +one error found -- cgit v1.2.3