blob: 12170c28edb8034cd23890634643f35a5a4393ac [file] [log] [blame]
// WITH_STDLIB
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"
}