We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f02cb0c commit ff27c8cCopy full SHA for ff27c8c
src/dotty/tools/dotc/transform/LambdaLift.scala
@@ -266,7 +266,7 @@ class LambdaLift extends MiniPhase with IdentityDenotTransformer { thisTransform
266
// top-level class. This avoids possible deadlocks when a static method
267
// has to access its enclosing object from the outside.
268
else if (sym.isConstructor) {
269
- if (false && sym.isPrimaryConstructor && isLocal(sym.owner) && !sym.owner.is(Trait))
+ if (sym.isPrimaryConstructor && isLocal(sym.owner) && !sym.owner.is(Trait))
270
// add a call edge from the constructor of a local non-trait class to
271
// the class itself. This is done so that the constructor inherits
272
// the free variables of the class.
0 commit comments