KT-5873 Exception in ArgumentMatchImpl on smart completion

#KT-5873 Fixed
This commit is contained in:
Svetlana Isakova
2014-09-26 18:38:20 +04:00
parent f0e7435254
commit 1d2d2f4845
4 changed files with 18 additions and 1 deletions
@@ -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
}