diff options
author | michelou <michelou@epfl.ch> | 2007-07-04 11:23:19 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-07-04 11:23:19 +0000 |
commit | 308f93f8ed160122118bdc3d0f81cc9a796f061f (patch) | |
tree | e2a008bac32067c422781a7cdc94fd3c7f734fc3 /src/compiler/scala/tools/nsc/typechecker/Typers.scala | |
parent | 1287e33524d8e83f7ad7c3974df0ec083f4799f2 (diff) | |
download | scala-308f93f8ed160122118bdc3d0f81cc9a796f061f.tar.gz scala-308f93f8ed160122118bdc3d0f81cc9a796f061f.tar.bz2 scala-308f93f8ed160122118bdc3d0f81cc9a796f061f.zip |
renamed -checknull to -Xchecknull
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index f3ca3a5734..ac8c55e920 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -52,12 +52,12 @@ trait Typers { self: Analyzer => super.traverse(tree) } } - def makeNewScope(txt : Context, tree : Tree, sym : Symbol) = + def makeNewScope(txt: Context, tree: Tree, sym: Symbol) = txt.makeNewScope(tree, sym) - def newDecls(tree : CompoundTypeTree) = newScope - def newDecls(tree : Template, clazz : Symbol) = newScope - def newTemplateScope(impl : Template, clazz : Symbol) = newScope + def newDecls(tree: CompoundTypeTree) = newScope + def newDecls(tree: Template, clazz: Symbol) = newScope + def newTemplateScope(impl: Template, clazz: Symbol) = newScope // Mode constants @@ -2289,7 +2289,7 @@ trait Typers { self: Analyzer => } val result = stabilize(checkAccessible(tree1, sym, qual.tpe, qual), qual.tpe, mode, pt) if (sym.isCaseFactory && !phase.erasedTypes) checkStable(qual) - if (!global.phase.erasedTypes && settings.checknull.value && + if (!global.phase.erasedTypes && settings.Xchecknull.value && !sym.isConstructor && !(qual.tpe <:< NotNullClass.tpe) && !qual.tpe.isNotNull) unit.warning(tree.pos, "potential null pointer dereference: "+tree) |