Skip to content

Commit

Permalink
For the benefit of future debugger users, let the context print some …
Browse files Browse the repository at this point in the history
…more useful information about error reporting
  • Loading branch information
hubertp committed May 22, 2012
1 parent f406550 commit 29c8e32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/scala/tools/nsc/typechecker/Contexts.scala
Expand Up @@ -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?
*/
Expand Down

0 comments on commit 29c8e32

Please sign in to comment.