Files
kotlin-fork/compiler/testData/codegen/box/properties/complexPropertyInitializer.kt
T
2020-11-09 16:04:43 +03:00

13 lines
242 B
Kotlin
Vendored

// DONT_TARGET_EXACT_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()