Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/resolve/kt35887_simple.fir.kt
T
Kirill Rakhman d91000e39c [FIR] Report INAPPLICABLE_CANDIDATE or more specific diagnostic for callable references
... instead of just UNRESOLVED_REFERENCE when something went wrong
during resolution.

#KT-59401 related
2023-11-08 15:45:48 +00:00

9 lines
264 B
Kotlin
Vendored

// SKIP_TXT
// !DIAGNOSTICS: -UNUSED_PARAMETER
import kotlin.reflect.KProperty0
object A
fun <TProperty> property0(property: KProperty0<TProperty>) = A
val <K> K.key get() : A = property0(Map.Entry<K, *>::<!INAPPLICABLE_CANDIDATE!>key<!>) // should be forbidden