78ec4b5248
They started failing once we began reporting diagnostics from completion The main reason is that we resolve `delegate()` call from `delegate().getValue()` in the independent context, while in FE 1.0 it's being resolved within the same system as getValue ^KT-46420 Relates
13 lines
302 B
Kotlin
Vendored
13 lines
302 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
object T3 {
|
|
interface Foo<T>
|
|
|
|
fun <T> delegate(): Foo<T> = TODO()
|
|
|
|
operator fun <T> Foo<T>.provideDelegate(host: T3, p: Any?): Foo<T> = TODO()
|
|
operator fun <T> Foo<T>.getValue(receiver: T3, p: Any?): T = TODO()
|
|
|
|
val test1: String by delegate()
|
|
}
|