diff options
author | Paul Phillips <paulp@improving.org> | 2011-07-23 20:50:24 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-07-23 20:50:24 +0000 |
commit | 5c61410fe5b8fd636bde6484f04a2d1160ed7eb4 (patch) | |
tree | 7d6d8068b148e0282bc5156d3e8fde1f9ac4fb7f /src/compiler/scala/tools/nsc/typechecker/Namers.scala | |
parent | f9f164d3c71aee897e7885e4c991866bd1c0c339 (diff) | |
download | scala-5c61410fe5b8fd636bde6484f04a2d1160ed7eb4.tar.gz scala-5c61410fe5b8fd636bde6484f04a2d1160ed7eb4.tar.bz2 scala-5c61410fe5b8fd636bde6484f04a2d1160ed7eb4.zip |
Start of an attempt to abstract above some hard...
Start of an attempt to abstract above some hardcoded name mangling
decisions so they can be modified, something we need to do to fix
long-standing problems with inner classes. It's not easy. This commit
doesn't actually change much, it's primarily setup. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Namers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Namers.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala index 9e9c42cf90..6bbb94bf29 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala @@ -1259,8 +1259,8 @@ trait Namers { self: Analyzer => def notMember() = context.error(tree.pos, from.decode + " is not a member of " + expr) // for Java code importing Scala objects - if (from endsWith nme.raw.DOLLAR) - isValidSelector(from stripEnd "$")(notMember()) + if (nme.isModuleName(from)) + isValidSelector(nme.stripModuleSuffix(from))(notMember()) else notMember() } |