diff options
author | michelou <michelou@epfl.ch> | 2007-07-17 15:24:37 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-07-17 15:24:37 +0000 |
commit | 8da5cd2cf0b9bcf91c119b5a5f741bea3d53d5ab (patch) | |
tree | 834002e3175b2ff272ed754096c72175b484e8ef | |
parent | 74f167520ea9e744f64d77f0ec8e4d243a7205b5 (diff) | |
download | scala-8da5cd2cf0b9bcf91c119b5a5f741bea3d53d5ab.tar.gz scala-8da5cd2cf0b9bcf91c119b5a5f741bea3d53d5ab.tar.bz2 scala-8da5cd2cf0b9bcf91c119b5a5f741bea3d53d5ab.zip |
returns NoSymbol instead of null
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/Definitions.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/Definitions.scala b/src/compiler/scala/tools/nsc/symtab/Definitions.scala index c0ae8720cf..ee45d17d7f 100644 --- a/src/compiler/scala/tools/nsc/symtab/Definitions.scala +++ b/src/compiler/scala/tools/nsc/symtab/Definitions.scala @@ -392,7 +392,7 @@ trait Definitions { def getClass(fullname: Name): Symbol = getModuleOrClass(fullname, false) def getMember(owner: Symbol, name: Name): Symbol = { - if (owner == null) return null + if (owner == NoSymbol) return NoSymbol val result = owner.info.nonPrivateMember(name) if (result == NoSymbol) { Console.println(owner.infosString) @@ -403,7 +403,7 @@ trait Definitions { } private def getModuleOrClass(fullname: Name, module: Boolean): Symbol = { - if (fullname == nme.NOSYMBOL) return null + if (fullname == nme.NOSYMBOL) return NoSymbol var sym = RootClass var i = 0 var j = fullname.pos('.', i) |