s

    serebit

    3 years ago
    Superclass information in KType (via typeOf) would be nice
    Dico

    Dico

    3 years ago
    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>