mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 08:31:29 +00:00
14 lines
241 B
Kotlin
Vendored
14 lines
241 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// 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"
|
|
}
|