[NI] Approximate implicit return type for functions
This commit is contained in:
@@ -1158,8 +1158,9 @@ public class DescriptorResolver {
|
|||||||
KotlinType type = expressionTypingServices.getBodyExpressionType(
|
KotlinType type = expressionTypingServices.getBodyExpressionType(
|
||||||
trace, scope, dataFlowInfo, function, functionDescriptor);
|
trace, scope, dataFlowInfo, function, functionDescriptor);
|
||||||
KotlinType result = transformAnonymousTypeIfNeeded(functionDescriptor, function, type, trace);
|
KotlinType result = transformAnonymousTypeIfNeeded(functionDescriptor, function, type, trace);
|
||||||
functionsTypingVisitor.checkTypesForReturnStatements(function, trace, result);
|
UnwrappedType approximatedType = typeApproximator.approximateDeclarationType(result, false);
|
||||||
return result;
|
functionsTypingVisitor.checkTypesForReturnStatements(function, trace, approximatedType);
|
||||||
|
return approximatedType;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user