Superclass information in KType (via typeOf) would...
# stdlib
s
Superclass information in KType (via typeOf) would be nice
1
d
At present you can use
type.classifier?.supertypes
But an stdlib function for instance check would be useful
Except it is not necessarily possible to compare generic type parameter so that may be why it isn't a thing
type.classifier?.isInstance(obj) ?: <edge case>