[FIR] Disallow operators not on functions

Introduce `NOT_FUNCTION_AS_OPERATOR` and use it instead of `PROPERTY_AS_OPERATOR`

^KT-65881 Fixed

Merge-request: KT-MR-14547
This commit is contained in:
Ivan Kochurkin
2024-03-08 10:07:23 +00:00
committed by Space Team
parent df9d59851d
commit 2d4f4b9bb5
31 changed files with 440 additions and 100 deletions
@@ -89,10 +89,10 @@ enum class CandidateApplicability {
RESOLVED_LOW_PRIORITY,
/**
* Candidate is successful but uses property of functional type as an operator.
* Candidate is successful but uses property or object of functional type as an operator.
* Tower resolve proceeds to next levels.
*/
K2_PROPERTY_AS_OPERATOR,
K2_NOT_FUNCTION_AS_OPERATOR,
/**
* Candidate is successful but uses new features that change resolve.