summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Namers.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-09-28 23:09:55 -0700
committerPaul Phillips <paulp@improving.org>2012-10-09 14:17:34 -0700
commiteed61bed1ff3ff70c32b579a5995da4ce59e2d67 (patch)
tree2ead9c5956307c395da1b5684d952005542d27a8 /src/compiler/scala/tools/nsc/typechecker/Namers.scala
parentba36c44c31d1a1e0b5c0cf3d4775edd0ae0d5a13 (diff)
downloadscala-eed61bed1ff3ff70c32b579a5995da4ce59e2d67.tar.gz
scala-eed61bed1ff3ff70c32b579a5995da4ce59e2d67.tar.bz2
scala-eed61bed1ff3ff70c32b579a5995da4ce59e2d67.zip
Incorporated pull request feedback.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Namers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Namers.scala4
1 files changed, 4 insertions, 0 deletions
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)