Files
kotlin-fork/compiler/testData/codegen/box/properties/complexPropertyInitializer.kt
T
2020-02-06 21:03:41 +03:00

12 lines
205 B
Kotlin
Vendored

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