Permalink
Browse files

For the benefit of future debugger users, let the context print some …

…more useful information about error reporting
  • Loading branch information...
hubertp committed May 22, 2012
1 parent f406550 commit 29c8e323c589058a0668a249a39fec28293c45ca
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/compiler/scala/tools/nsc/typechecker/Contexts.scala
@@ -438,8 +438,8 @@ trait Contexts { self: Analyzer =>
def enclosingContextChain: List[Context] = this :: outer.enclosingContextChain
override def toString = "Context(%s@%s unit=%s scope=%s errors=%b)".format(
owner.fullName, tree.shortClass, unit, scope.##, hasErrors
override def toString = "Context(%s@%s unit=%s scope=%s errors=%b, reportErrors=%b, throwErrors=%b)".format(
owner.fullName, tree.shortClass, unit, scope.##, hasErrors, reportErrors, throwErrors
)
/** Is `sub` a subclass of `base` or a companion object of such a subclass?
*/

0 comments on commit 29c8e32

Please sign in to comment.