0c79de1a98
There are design questions about reflection for adapted references, so the current proposal is to prohibit reflection on them and support it properly later #KT-40406 Fixed
13 lines
231 B
Kotlin
Vendored
13 lines
231 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !LANGUAGE: -AdaptedCallableReferenceAgainstReflectiveType
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
import kotlin.reflect.KCallable
|
|
|
|
fun take(k: KCallable<*>) {}
|
|
|
|
fun foo(x: Int = 0) {}
|
|
|
|
fun test() {
|
|
take(::foo)
|
|
} |