mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 00:21:35 +00:00
17 lines
363 B
Kotlin
Vendored
17 lines
363 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// WITH_REFLECT
|
|
|
|
import kotlin.reflect.jvm.reflect
|
|
|
|
class C {
|
|
val o = { O: String -> }
|
|
val k = { K: String -> }
|
|
|
|
constructor(y: Int)
|
|
constructor(y: String)
|
|
}
|
|
|
|
fun box(): String =
|
|
(C(0).o.reflect()?.parameters?.singleOrNull()?.name ?: "null") +
|
|
(C("").k.reflect()?.parameters?.singleOrNull()?.name ?: "null")
|