[FIR] Report PROPERTY_AS_OPERATOR for all operator conventions

^KT-62347 Fixed
^KT-59715 Fixed
This commit is contained in:
Dmitriy Novozhilov
2023-12-11 13:21:32 +02:00
committed by Space Team
parent 92c75fb7ab
commit 93563d7c80
18 changed files with 24 additions and 110 deletions
@@ -1,23 +0,0 @@
// ISSUE: KT-59715
class FunctionComponent {
val component1: () -> String = { "hello" }
}
class I {
operator fun invoke(): String = "hello"
}
class InvokeComponent {
val component1: I = I()
}
fun test_1(c: FunctionComponent) {
val (x) = FunctionComponent()
val (y) = c
}
fun test_2(c: InvokeComponent) {
val (x) = FunctionComponent()
val (y) = c
}