aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/transform/LambdaLift.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-03-03 13:01:42 +0100
committerMartin Odersky <odersky@gmail.com>2016-03-03 13:01:42 +0100
commitff27c8c12f1f584718acb8799b2609df952751b0 (patch)
tree7e013a9cd2fc116bdb4bdefe978650db037aab63 /src/dotty/tools/dotc/transform/LambdaLift.scala
parentf02cb0cc910e3320eeb19e2b1cad7e03a16c9c42 (diff)
downloaddotty-ff27c8c12f1f584718acb8799b2609df952751b0.tar.gz
dotty-ff27c8c12f1f584718acb8799b2609df952751b0.tar.bz2
dotty-ff27c8c12f1f584718acb8799b2609df952751b0.zip
Drop accidentally left-in inhibitor switch
Diffstat (limited to 'src/dotty/tools/dotc/transform/LambdaLift.scala')
-rw-r--r--src/dotty/tools/dotc/transform/LambdaLift.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/transform/LambdaLift.scala b/src/dotty/tools/dotc/transform/LambdaLift.scala
index b14074645..ef7a110b1 100644
--- a/src/dotty/tools/dotc/transform/LambdaLift.scala
+++ b/src/dotty/tools/dotc/transform/LambdaLift.scala
@@ -266,7 +266,7 @@ class LambdaLift extends MiniPhase with IdentityDenotTransformer { thisTransform
// top-level class. This avoids possible deadlocks when a static method
// has to access its enclosing object from the outside.
else if (sym.isConstructor) {
- if (false && sym.isPrimaryConstructor && isLocal(sym.owner) && !sym.owner.is(Trait))
+ if (sym.isPrimaryConstructor && isLocal(sym.owner) && !sym.owner.is(Trait))
// add a call edge from the constructor of a local non-trait class to
// the class itself. This is done so that the constructor inherits
// the free variables of the class.