Smallville7123
04/09/2019, 1:58 AMfun ret() {
class a {
var empty: Int = 0
}
val f = arrayListOf<a>()
f.add(a()) // class a is explicitly specified
}
serebit
04/09/2019, 2:03 AMSmallville7123
04/09/2019, 2:05 AMclass java.lang.Class
ilya.gorbunov
04/09/2019, 2:39 AMArrayList<a>
doesn't know its element type, so you cannot obtain it with reflection.a
without specifying its name?null
there.