summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-03-31 12:52:54 -0700
committerPaul Phillips <paulp@improving.org>2012-04-01 08:27:09 -0700
commitf7535f72903f083b2444fb1d0b73363efa5482e9 (patch)
tree8f8872c0d1f4f9810530baf574b9d1aa8e049033 /src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
parent17356bf8a3eddb5b6652884ee5b96970d3ddb6cf (diff)
downloadscala-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.scala4
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