ClassDescriptorFromSoruce
getUnsubstitutedPrimaryConstructor is needed only when analyzing source. Primary constructor only exists in source code.
This commit is contained in:
@@ -529,7 +529,7 @@ public class ImplementationBodyCodegen extends ClassBodyCodegen {
|
||||
closure.superCall = (JetDelegatorToSuperCall) superCall;
|
||||
DeclarationDescriptor declarationDescriptor = bindingContext.get(BindingContext.REFERENCE_TARGET, ((JetDelegatorToSuperCall) superCall).getCalleeExpression().getConstructorReferenceExpression());
|
||||
if (declarationDescriptor instanceof ClassDescriptor) {
|
||||
declarationDescriptor = ((ClassDescriptor)declarationDescriptor).getUnsubstitutedPrimaryConstructor();
|
||||
declarationDescriptor = ((ClassDescriptorFromSource) declarationDescriptor).getUnsubstitutedPrimaryConstructor();
|
||||
}
|
||||
ConstructorDescriptor superConstructor = (ConstructorDescriptor) declarationDescriptor;
|
||||
CallableMethod superCallable = typeMapper.mapToCallableMethod(superConstructor, OwnerKind.IMPLEMENTATION, typeMapper.hasThis0(superConstructor.getContainingDeclaration()));
|
||||
|
||||
Reference in New Issue
Block a user