[FIR] Mark more calls origin as OPERATOR

This commit is contained in:
Andrey Zinovyev
2021-05-18 18:19:46 +03:00
committed by TeamCityServer
parent 0a45b3a50b
commit 07a8ae7e71
18 changed files with 51 additions and 54 deletions
@@ -1,7 +0,0 @@
import kotlin.reflect.KProperty0
val a: Int by A()
class A {
fun getValue(t: Any?, p: KProperty0<*>): Int = 1
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
import kotlin.reflect.KProperty0
val a: Int by <!DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE!>A()<!>
@@ -13,6 +13,6 @@ fun String.provideDelegate(a: Any?, p: KProperty<*>) = StringDelegate(this)
operator fun String.getValue(a: Any?, p: KProperty<*>) = this
val test1: String by "OK"
val test2: Int by "OK"
val test2: Int by <!DELEGATE_SPECIAL_FUNCTION_RETURN_TYPE_MISMATCH!>"OK"<!>
val test3 by "OK"