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/typeerror.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/typeerror.check')
-rw-r--r-- | test/files/neg/typeerror.check | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/neg/typeerror.check b/test/files/neg/typeerror.check index 3e21a79ad5..3ce11dad8a 100644 --- a/test/files/neg/typeerror.check +++ b/test/files/neg/typeerror.check @@ -1,6 +1,6 @@ typeerror.scala:6: error: type mismatch; found : Long(in method add) - required: Long(in package scala) + required: scala.Long else add2(x.head, y.head) :: add(x.tail, y.tail) ^ one error found |