KT-2317 Wrong UNNECESSARY_SAFE_CALL
#KT-2317 Fixed
This commit is contained in:
committed by
Alexander Udalov
parent
bb8dc49692
commit
b2defb2cb4
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user