LastExceed
03/23/2020, 12:11 PMfun main() {
val thing = MyClass(42, "69")
thing::class.memberProperties.forEach {
println(it.name)
println(it.get())
}
}
data class MyClass(val x: Int, val y: String)
but get()
requires a parameter of type Nothing
which i dont understandEmil Kantis
03/23/2020, 12:23 PMit.get()
-> it.getter.call(thing)
Emil Kantis
03/23/2020, 12:23 PMit.get()
is supposed to be used in this caseDico
03/23/2020, 12:44 PMget()
to be used I think. Like this::propName
, is bound to this.LastExceed
03/23/2020, 12:45 PMaraqnid
03/23/2020, 5:44 PM.get()
method if you start from a class literal (e.g. MyClass::class
)