Files
kotlin-fork/compiler/testData/codegen/box/properties/complexPropertyInitializer.kt
T
2021-10-02 06:14:35 +00:00

13 lines
231 B
Kotlin
Vendored

// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: COROUTINES
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
class A {
val s: Sequence<String> = sequence {
val a = {}
yield("OK")
}
}
fun box(): String = A().s.single()