Do not lookup expressions in closures when building signatures

#KT-2764 Fixed
(EA-38857)
This commit is contained in:
Alexander Udalov
2012-09-12 20:54:34 +04:00
parent ca65574bce
commit ccfa5f8c2c
3 changed files with 37 additions and 2 deletions
@@ -625,7 +625,9 @@ public class ImplementationBodyCodegen extends ClassBodyCodegen {
final ConstructorContext constructorContext = context.intoConstructor(constructorDescriptor);
lookupConstructorExpressionsInClosureIfPresent(constructorContext);
if (state.getClassBuilderMode() == ClassBuilderMode.FULL) {
lookupConstructorExpressionsInClosureIfPresent(constructorContext);
}
MutableClosure closure = context.closure;
boolean hasThis0 = closure != null && closure.getCaptureThis() != null;