diff options
author | Paul Phillips <paulp@improving.org> | 2012-03-31 12:52:54 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-04-01 08:27:09 -0700 |
commit | f7535f72903f083b2444fb1d0b73363efa5482e9 (patch) | |
tree | 8f8872c0d1f4f9810530baf574b9d1aa8e049033 /src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala | |
parent | 17356bf8a3eddb5b6652884ee5b96970d3ddb6cf (diff) | |
download | scala-f7535f72903f083b2444fb1d0b73363efa5482e9.tar.gz scala-f7535f72903f083b2444fb1d0b73363efa5482e9.tar.bz2 scala-f7535f72903f083b2444fb1d0b73363efa5482e9.zip |
Pushed Symbol/Type creation partitioning further.
Yet more funnelling of immutable creation-time known information
into the identities of symbols and types.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala b/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala index 764823d786..49ddb985dc 100644 --- a/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala +++ b/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala @@ -317,7 +317,7 @@ trait ContextErrors { } withAddendum(qual.pos)( if (name == nme.CONSTRUCTOR) target + " does not have a constructor" - else nameString + " is not a member of " + targetKindString + target + addendum + else nameString + " is not a member of " + targetKindString + target.directObjectString + addendum ) } issueNormalTypeError(sel, errMsg) @@ -677,7 +677,7 @@ trait ContextErrors { def AccessError(tree: Tree, sym: Symbol, pre: Type, owner0: Symbol, explanation: String) = { def errMsg = { - val location = if (sym.isClassConstructor) owner0 else pre.widen + val location = if (sym.isClassConstructor) owner0 else pre.widen.directObjectString underlyingSymbol(sym).fullLocationString + " cannot be accessed in " + location + explanation |