mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 15:51:01 +00:00
14 lines
321 B
Kotlin
Vendored
14 lines
321 B
Kotlin
Vendored
// !LANGUAGE: +NormalizeConstructorCalls
|
|
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
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" }
|
|
} |