diff options
author | Martin Odersky <odersky@gmail.com> | 2008-01-29 11:57:45 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2008-01-29 11:57:45 +0000 |
commit | 0799efb89361220930c4009c78fe6ebeaf54a3c8 (patch) | |
tree | 3455b2ae3c47d71d54d20e2ce111c63b90745a64 /src/compiler | |
parent | f913d796772ae3956702f0d96ca30a7992b8c396 (diff) | |
download | scala-0799efb89361220930c4009c78fe6ebeaf54a3c8.tar.gz scala-0799efb89361220930c4009c78fe6ebeaf54a3c8.tar.bz2 scala-0799efb89361220930c4009c78fe6ebeaf54a3c8.zip |
backed lout of some changes for vcs
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/Symbols.scala | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/Symbols.scala b/src/compiler/scala/tools/nsc/symtab/Symbols.scala index 3a323aa5a6..372deb295a 100644 --- a/src/compiler/scala/tools/nsc/symtab/Symbols.scala +++ b/src/compiler/scala/tools/nsc/symtab/Symbols.scala @@ -1380,9 +1380,9 @@ trait Symbols { } private var thissym: Symbol = this - override def isClass: Boolean = hasFlag(DEFERRED) || !phase.devirtualized - override def isTypeMember = !isClass - override def isAbstractType = !isClass + override def isClass: Boolean = true + override def isTypeMember = false + override def isAbstractType = false override def isAliasType = false override def reset(completer: Type) { @@ -1413,19 +1413,16 @@ trait Symbols { val period = thisTypePeriod if (period != currentPeriod) { thisTypePeriod = currentPeriod - if (!isValid(period)) - thisTypeCache = if (isClass) mkThisType(this) else NoPrefix + if (!isValid(period)) thisTypeCache = mkThisType(this) } thisTypeCache } /** A symbol carrying the self type of the class as its type */ - override def thisSym: Symbol = - if (isClass) thissym else this + override def thisSym: Symbol = thissym override def typeOfThis: Type = - if (!isClass) tpe - else if (getFlag(MODULE | IMPLCLASS) == MODULE && owner != NoSymbol) + if (getFlag(MODULE | IMPLCLASS) == MODULE && owner != NoSymbol) singleType(owner.thisType, sourceModule) else thissym.tpe |