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
This commit is contained in:
committed by
Space Team
parent
8c8ca7bb70
commit
3964ee38be
+10
@@ -0,0 +1,10 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user