Skip to content

Commit ff27c8c

Browse files
committed
Drop accidentally left-in inhibitor switch
1 parent f02cb0c commit ff27c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/transform/LambdaLift.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class LambdaLift extends MiniPhase with IdentityDenotTransformer { thisTransform
266266
// top-level class. This avoids possible deadlocks when a static method
267267
// has to access its enclosing object from the outside.
268268
else if (sym.isConstructor) {
269-
if (false && sym.isPrimaryConstructor && isLocal(sym.owner) && !sym.owner.is(Trait))
269+
if (sym.isPrimaryConstructor && isLocal(sym.owner) && !sym.owner.is(Trait))
270270
// add a call edge from the constructor of a local non-trait class to
271271
// the class itself. This is done so that the constructor inherits
272272
// the free variables of the class.

0 commit comments

Comments
 (0)