summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-03-18 18:40:40 +0000
committerpaltherr <paltherr@epfl.ch>2004-03-18 18:40:40 +0000
commit29d6bb1eb31ff328955213e15e8555075a1b1d7d (patch)
tree0d2b4f9718c896e0d7a52cd35baf51b215a56638
parentf6835d10b6db16b30e94c2cd4038014a97243eb6 (diff)
downloadscala-29d6bb1eb31ff328955213e15e8555075a1b1d7d.tar.gz
scala-29d6bb1eb31ff328955213e15e8555075a1b1d7d.tar.bz2
scala-29d6bb1eb31ff328955213e15e8555075a1b1d7d.zip
- Simplified Symbol.isThisSym
-rw-r--r--sources/scalac/symtab/Symbol.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java
index 9804e5c121..18c2a1aa2c 100644
--- a/sources/scalac/symtab/Symbol.java
+++ b/sources/scalac/symtab/Symbol.java
@@ -654,7 +654,7 @@ public abstract class Symbol implements Modifiers, Kinds {
/** Does this symbol denote a this symbol? */
public final boolean isThisSym() {
- return owner.isClass() && owner.thisSym() == this;
+ return (attrs & IS_THISTYPE) != 0;
}
/** Does this symbol denote an interface? */