diff options
author | Martin Odersky <odersky@gmail.com> | 2006-01-03 17:14:56 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-01-03 17:14:56 +0000 |
commit | 4e176bc3d22fb4457045b5731e0b202dc5924dfa (patch) | |
tree | 042be64c9f8d9cc79f8d9091e4eeb02b0bfee313 | |
parent | dbf2424c54aefddb50f6e7cb12d1fdc220bd9465 (diff) | |
download | scala-4e176bc3d22fb4457045b5731e0b202dc5924dfa.tar.gz scala-4e176bc3d22fb4457045b5731e0b202dc5924dfa.tar.bz2 scala-4e176bc3d22fb4457045b5731e0b202dc5924dfa.zip |
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/Symbols.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/Symbols.scala b/src/compiler/scala/tools/nsc/symtab/Symbols.scala index 2d7966add0..2b1be41917 100644 --- a/src/compiler/scala/tools/nsc/symtab/Symbols.scala +++ b/src/compiler/scala/tools/nsc/symtab/Symbols.scala @@ -57,7 +57,7 @@ import Flags._; var attributes: List[AttrInfo] = List(); - var privateWithin: Symbol = NoSymbol; + var privateWithin: Symbol = _; // Creators ------------------------------------------------------------------- @@ -804,6 +804,8 @@ import Flags._; class TermSymbol(initOwner: Symbol, initPos: int, initName: Name) extends Symbol(initOwner, initPos, initName) { override def isTerm = true; + privateWithin = NoSymbol; + protected var referenced: Symbol = NoSymbol; def cloneSymbolImpl(owner: Symbol): Symbol = { @@ -873,6 +875,7 @@ import Flags._; */ class TypeSymbol(initOwner: Symbol, initPos: int, initName: Name) extends Symbol(initOwner, initPos, initName) { override def isType = true; + privateWithin = NoSymbol; private var tyconCache: Type = null; private var tyconRun: CompilerRun = null; private var tpeCache: Type = _; @@ -1022,6 +1025,7 @@ import Flags._; /** An object repreesenting a missing symbol */ object NoSymbol extends Symbol(null, Position.NOPOS, nme.NOSYMBOL) { setInfo(NoType); + privateWithin = this; override def setInfo(info: Type): this.type = { assert(info eq NoType); super.setInfo(info) } override def enclClass: Symbol = this; override def toplevelClass: Symbol = this; |