FIR: Update test data (delegate inference)
Changed data looks correct
This commit is contained in:
committed by
teamcityserver
parent
7c5c744e87
commit
010a0c6cdc
Vendored
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
+1
-1
@@ -19,4 +19,4 @@ class DIProperty<out V> : LazyDelegate<V> {
|
||||
|
||||
interface LazyDelegate<out V> {
|
||||
operator fun provideDelegate(receiver: Any?, prop: KProperty<Any?>): Lazy<V>
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -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>()<!>
|
||||
|
||||
Reference in New Issue
Block a user