summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorschinz <schinz@epfl.ch>2003-03-13 13:52:21 +0000
committerschinz <schinz@epfl.ch>2003-03-13 13:52:21 +0000
commitfa5c556780e147bc1ecc2ffc2e0754e4f0f4b89f (patch)
treef4e2d383e70f0c5df5a6abdd8a3c5c35baf7c1b1 /sources
parentd6cc02f92d6bdf7936f612bc3b0ea3d93b6900fb (diff)
downloadscala-fa5c556780e147bc1ecc2ffc2e0754e4f0f4b89f.tar.gz
scala-fa5c556780e147bc1ecc2ffc2e0754e4f0f4b89f.tar.bz2
scala-fa5c556780e147bc1ecc2ffc2e0754e4f0f4b89f.zip
- use the explicit "this" now introduced by the...
- use the explicit "this" now introduced by the analyzer to know to which outer class a symbol belongs
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/transformer/ExplicitOuterClasses.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scalac/transformer/ExplicitOuterClasses.java b/sources/scalac/transformer/ExplicitOuterClasses.java
index 80fbf4abaf..fd2622ba72 100644
--- a/sources/scalac/transformer/ExplicitOuterClasses.java
+++ b/sources/scalac/transformer/ExplicitOuterClasses.java
@@ -116,7 +116,7 @@ public class ExplicitOuterClasses extends Transformer {
Iterator classIt = classStack.iterator();
for (int level = 0; classIt.hasNext(); ++level) {
Symbol classSym = (Symbol)classIt.next();
- if (classSym.closurePos(sym) != -1)
+ if (classSym == sym)
return level;
}
return -1;