Files
kotlin-fork/js/js.translator/testData/box/expression/function/localInInitBlock.kt
T
2017-07-19 12:24:09 +03:00

17 lines
205 B
Kotlin
Vendored

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