Do not lookup expressions in closures when building signatures
#KT-2764 Fixed (EA-38857)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user