mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 15:54:05 +00:00
13 lines
211 B
Kotlin
Vendored
13 lines
211 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// WITH_REFLECT
|
|
|
|
import kotlin.reflect.jvm.reflect
|
|
|
|
class C {
|
|
val x = { OK: String -> }
|
|
}
|
|
|
|
fun box(): String {
|
|
return C().x.reflect()?.parameters?.singleOrNull()?.name ?: "null"
|
|
}
|