poohbar
07/16/2020, 8:19 PMit.get is expecting Nothing.. why?diesieben07
07/16/2020, 8:32 PMjoe::class is KClass<out Customer>, because the compiler cannot prove that joe is actually a Customer and not a subclass of customer. So if you want to call a property getter from that, you can't (hence Nothing) because you don't know what the actual type of joe and thereby joe::class is.diesieben07
07/16/2020, 8:33 PMit.getter.call works, because KCallable.call is not typesafe (it just accepts vararg of Any?