Record resolved delegation call for primary ctor if single result
Do the same thing as for secondary constructor (looks like it was a workaround for R&I bug that was used only for secondary constructors for some reason). #KT-17464 Fixed Target versions 1.1.5
This commit is contained in:
@@ -328,7 +328,7 @@ public class BodyResolver {
|
||||
OverloadResolutionResults<FunctionDescriptor> results = callResolver.resolveFunctionCall(
|
||||
trace, scopeForConstructor,
|
||||
CallMaker.makeConstructorCallWithoutTypeArguments(call), NO_EXPECTED_TYPE, outerDataFlowInfo, false);
|
||||
if (results.isSuccess()) {
|
||||
if (results.isSingleResult()) {
|
||||
KotlinType supertype = results.getResultingDescriptor().getReturnType();
|
||||
recordSupertype(typeReference, supertype);
|
||||
ClassDescriptor classDescriptor = TypeUtils.getClassDescriptor(supertype);
|
||||
|
||||
Reference in New Issue
Block a user