diff options
author | Martin Odersky <odersky@gmail.com> | 2012-02-22 23:05:26 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2012-02-22 23:05:26 +0100 |
commit | 4eae7511a297b9d51e1aea2da38c5dacf786efa0 (patch) | |
tree | 9b57d4b39e3e76e5ba42be4e7f679a02a2f2befc /src/compiler | |
parent | d604417bac9a583048d750f627c2de5f8e46424f (diff) | |
download | scala-4eae7511a297b9d51e1aea2da38c5dacf786efa0.tar.gz scala-4eae7511a297b9d51e1aea2da38c5dacf786efa0.tar.bz2 scala-4eae7511a297b9d51e1aea2da38c5dacf786efa0.zip |
Compiler now ready to accept value classes in standard library. Time for a new STARR!
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Namers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala index 5207fe8331..687c325760 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala @@ -103,7 +103,7 @@ trait Namers extends MethodSynthesis { def enclosingNamerWithScope(scope: Scope) = { var cx = context while (cx != NoContext && cx.scope != scope) cx = cx.outer - if (cx == context) thisNamer + if (cx == NoContext || cx == context) thisNamer else newNamer(cx) } |