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/bug2206.scala | |
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/bug2206.scala')
-rw-r--r-- | test/files/neg/bug2206.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/neg/bug2206.scala b/test/files/neg/bug2206.scala new file mode 100644 index 0000000000..cd2ec225e9 --- /dev/null +++ b/test/files/neg/bug2206.scala @@ -0,0 +1,15 @@ +object o { + class A + + class AX { + def f() { } + } + + import Implicits._ + val a = new A + a.f() + + object Implicits { + implicit def ax(a: A) = new AX + } +}
\ No newline at end of file |