diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionStages.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionStages.kt index e42f140ef75..68047bf07fc 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionStages.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionStages.kt @@ -366,7 +366,7 @@ private fun FirSession.createAdaptedKFunctionType( internal object DiscriminateSynthetics : CheckerStage() { override suspend fun check(candidate: Candidate, sink: CheckerSink, callInfo: CallInfo) { if (candidate.symbol is SyntheticSymbol) { - sink.reportApplicability(CandidateApplicability.SYNTHETIC_RESOLVED) + sink.reportApplicability(CandidateApplicability.RESOLVED_LOW_PRIORITY) } } } diff --git a/compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/tower/CandidateApplicability.kt b/compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/tower/CandidateApplicability.kt index a0a97eef383..bc78dba1389 100644 --- a/compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/tower/CandidateApplicability.kt +++ b/compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/tower/CandidateApplicability.kt @@ -18,11 +18,7 @@ enum class CandidateApplicability { RESOLVED_LOW_PRIORITY, RESOLVED_NEED_PRESERVE_COMPATIBILITY, // call resolved successfully, but using new features that changes resolve RESOLVED_WITH_ERROR, // call has error, but it is still successful from resolution perspective - RESOLVED; // call success or has uncompleted inference or in other words possible successful candidate - - companion object { - val SYNTHETIC_RESOLVED: CandidateApplicability = RESOLVED_LOW_PRIORITY - } + RESOLVED, // call success or has uncompleted inference or in other words possible successful candidate } val CandidateApplicability.isSuccess: Boolean