f283f2db43
Also introduce few new diagnostics: - NONE_APPLICABLE more many inapplicable candidates - HIDDEN for visible candidates
10 lines
319 B
Kotlin
Vendored
10 lines
319 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 = <!INAPPLICABLE_CANDIDATE!>property0<!>(<!UNRESOLVED_REFERENCE!>Map.Entry<K, *>::key<!>) // should be forbidden
|