summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-09-30 20:52:47 +0000
committerPaul Phillips <paulp@improving.org>2010-09-30 20:52:47 +0000
commitd3c453d15c318c7c8da73d6a2ea2ae59a14da196 (patch)
treee796712c319709c56d7aa756526e7b1d57bff7ba /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
parent0f2808227be055fb4603e7a0600a063a5756dfa0 (diff)
downloadscala-d3c453d15c318c7c8da73d6a2ea2ae59a14da196.tar.gz
scala-d3c453d15c318c7c8da73d6a2ea2ae59a14da196.tar.bz2
scala-d3c453d15c318c7c8da73d6a2ea2ae59a14da196.zip
While trying to come to an understanding with #...
While trying to come to an understanding with #3869 I had one of those "what are we doing" moments regarding the reams of output generated under -Ydebug. We have all these places where extra info is logged under -Ydebug -- like "if (debug) log(...)" -- and if you try for those you are also saddled with all these irrelevant places which instead say if (debug) Console.println(...). I changed about every one of them to send it to log() instead. So if you were enjoying that 600 MB of debugging output when you compile "goodbye world", you can have it back and then some with -Ylog:all. Until then, enjoy the calm, quiet competence of the new -Ydebug. Also herein: raised default ANT_OPTS permgen because I can no longer build a dist with the former defaults, and gave some synthetics a better home in StdNames. No review (but if anyone just can't live without some particular piece of output every single time -Ydebug is given, I can put it back.)
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/RefChecks.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
index 5c90a69c94..d7b8d6f2c5 100644
--- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
@@ -966,7 +966,8 @@ abstract class RefChecks extends InfoTransform {
typed(ValDef(vsym, EmptyTree)) :: typed(lazyDef) :: Nil
} else {
if (tree.symbol.isLocal && index <= currentLevel.maxindex && !tree.symbol.hasFlag(LAZY)) {
- if (settings.debug.value) Console.println(currentLevel.refsym);
+ if (settings.debug.value)
+ Console.println(currentLevel.refsym)
unit.error(currentLevel.refpos, "forward reference extends over definition of " + tree.symbol);
}
List(tree1)