Files
kotlin-fork/js/js.translator/testData/box/closure/closureLocalFunctionByInnerFunctionInConstructor.kt
T
Roman Artemev 7f215d3f52 Update tests
2018-11-01 16:51:38 +03:00

26 lines
387 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1286
package foo
class Foo {
val OK = "OK";
var result: String = ""
init {
fun bar(s: String? = null) {
if (s != null) {
result = s
return
}
myRun {
bar(OK)
}
}
bar();
}
}
fun box(): String {
return Foo().result
}