Hey, does anyone know if there's a way to get the ...
# compiler
t
Hey, does anyone know if there's a way to get the supertypes of a method return type in kotlinx-metadata? I can't see any function that turns KmType into KmClass
u
KmType
has
classifier
which is a sealed class, one of its subclasses is
Class
, from where you can get the class name. kotlinx-metadata doesn’t do any kind of resolution to bind it to the
KmClass
, because metadata for that class is usually located in another file. If you need the
KmClass
, it’s expected that you’ll find the
.class
file for it (by name) and deserialize the metadata there.