Hey everyone! So I'm trying to get the fq name of...
# arrow-meta
a
Hey everyone! So I'm trying to get the fq name of a type argument and I've been using
KotlinType#getJetTypeFqName
, but I just noticed that it doesn't print the type arguments of the type arguments of this
KotlinType
. For example: If we have a type projection
A<B<C>>
, and we have
A
as a
KotlinType
, executing
getJetTypeFqName
on
A
returns
A<B>
and the arguments of
B
are simply ignored or erased. How do we get around this?
I've tried to build the fq name manually by accessing and printing the arguments recursively, but the same problem seems to happen where
B
doesn't have any arguments. EDIT: this was a caching problem in the IDE,
B
does have arguments.
r
are there other fields for fqName like fqNameSafe etc..?
a
@raulraja Nope, these are the only two functions with
fq
in their name: