mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
21 lines
346 B
Kotlin
Vendored
21 lines
346 B
Kotlin
Vendored
// IGNORE_BACKEND: WASM
|
|
// WITH_RUNTIME
|
|
|
|
// CHECK_BYTECODE_TEXT
|
|
// JVM_IR_TEMPLATES
|
|
// 1 ASTORE 1
|
|
// 12 ALOAD 1
|
|
// JVM_TEMPLATES
|
|
// 2 ASTORE 1
|
|
// 13 ALOAD 1
|
|
|
|
@Suppress("DEPRECATION_ERROR")
|
|
fun box(): String {
|
|
val seq = buildSequence {
|
|
yield("O")
|
|
yield("K")
|
|
}
|
|
val it = seq.iterator()
|
|
return it.next() + it.next()
|
|
}
|