aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-27 18:04:46 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-30 14:26:06 +0200
commitd0f9d6df8bfa185019004740ea8dd6472f3e7ed9 (patch)
tree31337c3621836bfd6afafe37caa30353b82df3db
parentf9a15df76853071b8643c30509a92321040047de (diff)
downloaddotty-d0f9d6df8bfa185019004740ea8dd6472f3e7ed9.tar.gz
dotty-d0f9d6df8bfa185019004740ea8dd6472f3e7ed9.tar.bz2
dotty-d0f9d6df8bfa185019004740ea8dd6472f3e7ed9.zip
Compiler: add comment on problems in late phases.
-rw-r--r--src/dotty/tools/dotc/Compiler.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/Compiler.scala b/src/dotty/tools/dotc/Compiler.scala
index b4be19799..102d99347 100644
--- a/src/dotty/tools/dotc/Compiler.scala
+++ b/src/dotty/tools/dotc/Compiler.scala
@@ -59,10 +59,10 @@ class Compiler {
List(new Mixin,
new LazyVals,
new Memoize,
- new CapturedVars,
+ new CapturedVars, // capturedVars has a transformUnit: no phases should introduce local mutable vars here
new Constructors,
new FunctionalInterfaces),
- List(new LambdaLift,
+ List(new LambdaLift, // in this mini-phase block scopes are incorrect. No phases that rely on scopes should be here
new Flatten,
new RestoreScopes),
List(/*new PrivateToStatic,*/ new CollectEntryPoints, new LabelDefs, new ElimWildcardIdents, new TraitConstructors),