[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,17 +0,0 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K1: JVM_IR
// ISSUE: KT-61633
class C<T3>(val p: T3)
class D<T4>(val p: T4)
val <X3> C<X3>.getValue: D<X3> get() = D(p)
operator fun <X4> D<X4>.invoke(x: Any?, y: Any?): X4 = p
fun foo(c: C<String>): String {
val y1 by c
return y1
}
fun box(): String = foo(C("OK"))