mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
12 lines
270 B
Kotlin
Vendored
12 lines
270 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
// WITH_REFLECT
|
|
|
|
import kotlin.reflect.jvm.reflect
|
|
|
|
inline class C(val x: Int)
|
|
|
|
fun C.f(x: (String) -> Unit = { OK: String -> }) = x.reflect()?.parameters?.singleOrNull()?.name
|
|
|
|
fun box(): String = C(0).f() ?: "null"
|