KT-2317 Wrong UNNECESSARY_SAFE_CALL

#KT-2317 Fixed
This commit is contained in:
Alexander Udalov
2012-06-26 01:36:29 +04:00
committed by Alexander Udalov
parent bb8dc49692
commit b2defb2cb4
7 changed files with 23 additions and 8 deletions
@@ -758,7 +758,7 @@ public class CallResolver {
result = OTHER_ERROR;
}
}
if (safeAccess && (receiverParameter.getType().isNullable() || !receiverArgumentType.isNullable())) {
if (safeAccess && !receiverArgumentType.isNullable()) {
context.tracing.unnecessarySafeCall(context.candidateCall.getTrace(), receiverArgumentType);
}
}