summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Analyzer.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-04-27 16:36:39 +0000
committerPaul Phillips <paulp@improving.org>2010-04-27 16:36:39 +0000
commit9b16201d2c982095c54b9803cee8c76b4f12024e (patch)
tree09721c98e76094311602b9debf3d8c4eb1a5ba23 /src/compiler/scala/tools/nsc/typechecker/Analyzer.scala
parent0675d244e45ea0f71a64568c832c846b19beea56 (diff)
downloadscala-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 'src/compiler/scala/tools/nsc/typechecker/Analyzer.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Analyzer.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Analyzer.scala b/src/compiler/scala/tools/nsc/typechecker/Analyzer.scala
index 635608520d..70bf55e661 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Analyzer.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Analyzer.scala
@@ -22,6 +22,7 @@ trait Analyzer extends AnyRef
with SyntheticMethods
with Unapplies
with NamesDefaults
+ with TypeDiagnostics
{
val global : Global
import global._