KT-5873 Exception in ArgumentMatchImpl on smart completion
#KT-5873 Fixed
This commit is contained in:
@@ -109,6 +109,7 @@ public class CandidateResolver {
|
||||
if (argumentMappingStatus == ValueArgumentsToParametersMapper.Status.STRONG_ERROR
|
||||
&& !CallResolverUtil.isInvokeCallOnExpressionWithBothReceivers(context.call)) {
|
||||
candidateCall.addStatus(RECEIVER_PRESENCE_ERROR);
|
||||
checkAllValueArguments(context, SHAPE_FUNCTION_ARGUMENTS);
|
||||
return;
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -45,7 +45,8 @@ public trait ArgumentMatch : ArgumentMapping {
|
||||
|
||||
class ArgumentMatchImpl(override val valueParameter: ValueParameterDescriptor): ArgumentMatch {
|
||||
private var _status: ArgumentMatchStatus? = null
|
||||
override val status: ArgumentMatchStatus get() = _status!!
|
||||
override val status: ArgumentMatchStatus
|
||||
get() = _status!!
|
||||
fun recordMatchStatus(status: ArgumentMatchStatus) {
|
||||
_status = status
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user