mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
15 lines
380 B
Kotlin
Vendored
15 lines
380 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
// KOTLIN_CONFIGURATION_FLAGS: CONSTRUCTOR_CALL_NORMALIZATION_MODE=enable
|
|
open class A(val s: String)
|
|
|
|
inline fun test(crossinline z: () -> String): String {
|
|
return object : A(listOf(1).map { it.toString() }.joinToString()) {
|
|
val value = z()
|
|
}.value
|
|
}
|
|
|
|
fun box(): String {
|
|
return test { "OK" }
|
|
} |