Kotlin Analysis API Documentation Help

KaCallCandidateInfo

KaCallCandidateInfo represents one of the candidates considered during overload resolution of a call. Unlike KaErrorCallInfo.candidateCalls, retrieving a candidate via KaCallCandidateInfo does not imply that the call is erroneous — you can list candidates on successful code too.

Hierarchy

KaCallCandidateInfo

KaApplicableCallCandidateInfo

KaInapplicableCallCandidateInfo

Members

val candidate: KaCall

The candidate represented as a KaCall (the legacy base type).

val isInBestCandidates: Boolean

Whether the candidate is in the final set the compiler considered. Multiple best candidates indicate ambiguity.

KaApplicableCallCandidateInfo

A candidate that could be called at the site — its arguments are complete and assignable, and its type arguments fit all the constraints.

KaInapplicableCallCandidateInfo

A candidate that could not be called at the site.

val diagnostic: KaDiagnostic

The reason for the candidate's missing applicability (e.g. argument type mismatch, missing value for a parameter, type-argument constraint violation).

Replacement mapping

Legacy member

Replacement

KaCallCandidateInfo/KaApplicableCallCandidateInfo/KaInapplicableCallCandidateInfo

KaCallCandidate/KaApplicableCallCandidate/KaInapplicableCallCandidate.

KaCallCandidateInfo.candidate: KaCall

KaCallCandidate.candidate: KaSingleOrMultiCall.

KtElement.resolveToCallCandidates(): List<KaCallCandidateInfo>

KtResolvableCall.collectCallCandidates(): List<KaCallCandidate>.

19 May 2026