Files
kotlin/compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnLambdaInStaticField.kt
pyos fc6b03b08f JVM_IR: move const initialization handling to lowering
Had to edit some bytecodeText tests to account for the fact that JVM_IR
no longer generates explicit initializations for ConstantValue fields,
but NoConstantValueAttributeForNonConstVals is not the default yet.
2019-11-29 16:49:52 +01:00

12 lines
221 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// WITH_REFLECT
import kotlin.reflect.jvm.reflect
val x = { OK: String -> }
fun box(): String {
return x.reflect()?.parameters?.singleOrNull()?.name ?: "null"
}