https://kotlinlang.org logo
#getting-started
Title
# getting-started
h

huehnerlady

03/16/2021, 10:26 AM
Hi. I would like to get the qualified name of a typealias. I have an alias
typealias my.test.Foo = String
I would now like to get the quaifiedName, so
my.test.Foo
. but using
Foo::class.qualifiedName
I get
kotlin.String
. I found this in a proposal, but the issue to it is closed and unfortunately
Foo::typealias.qualifiedName
does not work. Is there another way? I am currently on version
1.4.21
r

Ruckus

03/16/2021, 2:07 PM
No, it's just an alias. It doesn't exist at runtime.
😞 1
4 Views