Files
kotlin-fork/js/js.translator/testData/box/expression/function/localInInitBlock.kt
T
2018-07-31 11:28:39 +03:00

17 lines
206 B
Kotlin
Vendored

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