c48539feb3
In case of null qualifier, we should not look into any static scope NB: factory::createCallableProcessor returns NoExplicitReceiver processor in case of null-receiver, that makes resolving the call in the test as `property(::key)` that matches to the property itself, thus leading to overload resolution ambiguity ^KT-35887 Fixed
10 lines
283 B
Kotlin
Vendored
10 lines
283 B
Kotlin
Vendored
// SKIP_TXT
|
|
// !LANGUAGE: +NewInference
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
import kotlin.reflect.KProperty0
|
|
|
|
object A
|
|
|
|
fun <TProperty> property0(property: KProperty0<TProperty>) = A
|
|
val <K> K.key get() : A = property0(<!TYPE_MISMATCH!>Map.Entry<K, *>::key<!>) // should be forbidden
|