[FIR] KT-54410: Report API_NOT_AVAILABLE for classifiers

Callable symbols with SinceKotlin are filtered out by a
resolution stage, but in K1 classifiers and property accessors
report API_NOT_AVAILABLE. K2 filters out properties with
unavailable accessors, but does nothing for classifiers.
This change fixes it.

^KT-54410 Fixed
This commit is contained in:
Nikolay Lunyak
2023-01-18 19:13:42 +02:00
committed by Space Team
parent fd52cc4224
commit 9be819087a
22 changed files with 144 additions and 12 deletions
@@ -14,6 +14,8 @@ enum class CandidateApplicability {
/**
* Candidate is removed from resolve due to SinceKotlin with later version or Deprecation with hidden level.
* Note that SinceKotlin does not filter out classifier symbols and property accessors. Those
* should lead to API_NOT_AVAILABLE.
* Provokes UNRESOLVED_REFERENCE.
*/
HIDDEN,