FIR: Update test data (delegate inference)

Changed data looks correct
This commit is contained in:
Denis.Zharkov
2021-04-27 18:27:50 +03:00
committed by teamcityserver
parent 7c5c744e87
commit 010a0c6cdc
3 changed files with 4 additions and 4 deletions
@@ -9,6 +9,6 @@ object CommonCase {
operator fun <D, E, R> Fas<D, E, R>.provideDelegate(host: D, p: Any?): Fas<D, E, R> = TODO()
operator fun <D, E, R> Fas<D, E, R>.getValue(receiver: E, p: Any?): R = TODO()
val Long.test1: String by delegate() // common test, not working because of Inference1
val Long.test1: String by <!TYPE_MISMATCH!>delegate()<!> // common test, not working because of Inference1
val Long.test2: String by delegate<CommonCase, Long, String>() // should work
}
@@ -19,4 +19,4 @@ class DIProperty<out V> : LazyDelegate<V> {
interface LazyDelegate<out V> {
operator fun provideDelegate(receiver: Any?, prop: KProperty<Any?>): Lazy<V>
}
}
@@ -21,6 +21,6 @@ class D : A<Int> by baz({ it + 1 })
fun <T> boo(t: T): A<T> = AImpl()
class E : A<Int> by boo("")
class E : A<Int> by <!TYPE_MISMATCH, TYPE_MISMATCH!>boo("")<!>
class F : A<Int> by AImpl<String>()
class F : A<Int> by <!TYPE_MISMATCH, TYPE_MISMATCH, TYPE_MISMATCH!>AImpl<String>()<!>