Files
kotlin-fork/js/js.translator/testData/box/expression/function/localInInitBlock.kt
T
2018-09-12 09:49:25 +03:00

17 lines
206 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1286
package foo
class A {
val x: String
constructor() {
}
init {
val o = "O"
fun baz() = o + "K"
x = baz()
}
}
fun box() = A().x