https://kotlinlang.org logo
#arrow-meta
Title
# arrow-meta
a

Ahmed Mourad

12/18/2020, 10:36 AM
Hey! Is it possible to get the class that a
KotlinType
(type parameter) is pointing to, in the analysis phase?
r

raulraja

12/18/2020, 2:11 PM
Hi @Ahmed Mourad, if you have a kotlin type you should be able to just access it’s type constructor descriptor accessing the constructor property.
If I recall it’s something like
type.constructor.declarationDescriptor
😅 1
a

Ahmed Mourad

12/18/2020, 2:27 PM
Oh .. cool 😅 Thank you!
👍 1
5 Views