[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
+6
View File
@@ -0,0 +1,6 @@
val Int.plusAssign: (Int) -> Unit
get() = {}
fun main() {
1 <!NOT_FUNCTION_AS_OPERATOR!>+=<!> 2
}