Files
kotlin-fork/js/js.translator/testData/box/expression/function/localInInitBlock.kt
T
2018-04-19 13:17:28 +03:00

18 lines
231 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// 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