From eed61bed1ff3ff70c32b579a5995da4ce59e2d67 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 28 Sep 2012 23:09:55 -0700 Subject: Incorporated pull request feedback. --- src/compiler/scala/tools/nsc/typechecker/Namers.scala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/compiler/scala/tools/nsc/typechecker/Namers.scala') diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala index 710b3e4e54..25888fc054 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala @@ -729,6 +729,10 @@ trait Namers extends MethodSynthesis { def monoTypeCompleter(tree: Tree) = mkTypeCompleter(tree) { sym => // this early test is there to avoid infinite baseTypes when // adding setters and getters --> bug798 + // It is a def in an attempt to provide some insulation against + // uninitialized symbols misleading us. It is not a certainty + // this accomplishes anything, but performance is a non-consideration + // on these flag checks so it can't hurt. def needsCycleCheck = sym.isNonClassType && !sym.isParameter && !sym.isExistential logAndValidate(sym) { val tp = typeSig(tree) -- cgit v1.2.3