diff options
author | Paul Phillips <paulp@improving.org> | 2013-07-23 13:38:33 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-08-11 11:54:06 -0700 |
commit | 26aebfac0c6db18483d0db67bcd7f8faf7684f0d (patch) | |
tree | 8b61eba527e82c72e2cdb1899ad51b10ef29faa3 /src/compiler/scala/tools/nsc/typechecker/Contexts.scala | |
parent | e7876d5c41bbea0ee4679815edb5dc1ecef4c6a9 (diff) | |
download | scala-26aebfac0c6db18483d0db67bcd7f8faf7684f0d.tar.gz scala-26aebfac0c6db18483d0db67bcd7f8faf7684f0d.tar.bz2 scala-26aebfac0c6db18483d0db67bcd7f8faf7684f0d.zip |
SI-7690 ghost error message fails compile
I won't even try to explain the error reporting code, because
it would have no basis in reality. However this change appears
to fix the symptom reported.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Contexts.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Contexts.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala index 60641d6752..1b6443a4cb 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala @@ -1194,7 +1194,7 @@ trait Contexts { self: Analyzer => override final def imports = impInfo :: super.imports override final def firstImport = Some(impInfo) override final def isRootImport = !tree.pos.isDefined - override final def toString = s"ImportContext { $impInfo; outer.owner = ${outer.owner} }" + override final def toString = super.toString + " with " + s"ImportContext { $impInfo; outer.owner = ${outer.owner} }" } /** A buffer for warnings and errors that are accumulated during speculative type checking. */ |