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/bug278.check | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/files/neg/bug278.check') diff --git a/test/files/neg/bug278.check b/test/files/neg/bug278.check index a3d44f6508..ad0a97371e 100644 --- a/test/files/neg/bug278.check +++ b/test/files/neg/bug278.check @@ -1,4 +1,7 @@ -bug278.scala:5: error: overloaded method value a with alternatives => (C.this.A) => Unit => () => Unit does not take type parameters +bug278.scala:5: error: overloaded method value a with alternatives: + => (C.this.A) => Unit + => () => Unit + does not take type parameters a[A] ^ bug278.scala:4: error: method a is defined twice -- cgit v1.2.3