mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
12 lines
246 B
Kotlin
Vendored
12 lines
246 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// WITH_RUNTIME
|
|
// KJS_WITH_FULL_RUNTIME
|
|
|
|
fun box(): String {
|
|
var result = ""
|
|
for (x in listOf('O', 'A', 'K').filter { it > 'D' }) {
|
|
result += object { fun run() = x }.run()
|
|
}
|
|
return result
|
|
}
|