Join Slack
Powered by
Superclass information in KType (via typeOf) would...
# stdlib
s
serebit
07/23/2019, 11:10 PM
Superclass information in KType (via typeOf) would be nice
➕ 1
serebit
07/24/2019, 6:59 PM
https://youtrack.jetbrains.com/issue/KT-32956
d
Dico
07/24/2019, 10:52 PM
At present you can use
type.classifier?.supertypes
Dico
07/24/2019, 10:53 PM
But an stdlib function for instance check would be useful
Dico
07/24/2019, 10:54 PM
Except it is not necessarily possible to compare generic type parameter so that may be why it isn't a thing
Dico
07/24/2019, 10:56 PM
type.classifier?.isInstance(obj) ?: <edge case>
5
Views
Open in Slack
Previous
Next