blob: 60f1d9f24c1dc8d9977dd4af4ea56a86d675388b [file]
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
class World() {
public val items: ArrayList<Item> = ArrayList<Item>()
inner class Item() {
init {
items.add(this)
}
}
val foo = Item()
}
fun box() : String {
val w = World()
if (w.items.size != 1) return "fail"
return "OK"
}