Files
kotlin/compiler/testData/codegen/box/objects/localFunctionInObjectInitializer_kt4516.kt

18 lines
256 B
Kotlin
Vendored

object O {
val mmmap = HashMap<String, Int>();
init {
fun doStuff() {
mmmap.put("two", 2)
}
doStuff()
}
}
fun box(): String {
val r = O.mmmap["two"]
if (r != 2) return "Fail: $r"
return "OK"
}