diff options
author | Paul Phillips <paulp@improving.org> | 2010-04-27 16:36:39 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-04-27 16:36:39 +0000 |
commit | 9b16201d2c982095c54b9803cee8c76b4f12024e (patch) | |
tree | 09721c98e76094311602b9debf3d8c4eb1a5ba23 /test/files/neg/bug278.check | |
parent | 0675d244e45ea0f71a64568c832c846b19beea56 (diff) | |
download | scala-9b16201d2c982095c54b9803cee8c76b4f12024e.tar.gz scala-9b16201d2c982095c54b9803cee8c76b4f12024e.tar.bz2 scala-9b16201d2c982095c54b9803cee8c76b4f12024e.zip |
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.
Diffstat (limited to 'test/files/neg/bug278.check')
-rw-r--r-- | test/files/neg/bug278.check | 5 |
1 files changed, 4 insertions, 1 deletions
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 <and> => () => Unit does not take type parameters +bug278.scala:5: error: overloaded method value a with alternatives: + => (C.this.A) => Unit <and> + => () => Unit + does not take type parameters a[A] ^ bug278.scala:4: error: method a is defined twice |