Files
Mikhail Glukhikh 3964ee38be K2: fix handling of synthetic calls in delegate inference
This commit is intended to avoid the second resolve of delegate when
we need to consider provideDelegate() possibility in inference.
Also here we provide correct completion of synthetic calls during
delegate inference.

#KT-58013 Fixed
2023-05-04 11:48:37 +00:00

11 lines
180 B
Kotlin
Vendored

// FIR_IDENTICAL
class C {
operator fun getValue(x: Any?, y: Any?): String = ""
}
object O {
operator fun provideDelegate(x: Any?, y: Any?): C = C()
}
val x: String by O