d94912ed62
KT-44278 KT-26060 KT-42621
16 lines
283 B
Kotlin
Vendored
16 lines
283 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// IGNORE_LIGHT_ANALYSIS
|
|
// JVM_TARGET: 1.8
|
|
// LAMBDAS: INDY
|
|
|
|
inline class Z(val value: Any)
|
|
|
|
fun foo1(fs: (Z) -> Z) = fs(Z(1))
|
|
|
|
fun box(): String {
|
|
val t = foo1 { Z((it.value as Int) + 41) }
|
|
if (t.value != 42) return "Failed: t=$t"
|
|
|
|
return "OK"
|
|
}
|