https://kotlinlang.org logo
#compiler
Title
# compiler
r

raulraja

06/12/2019, 4:00 PM
What is the best way to obtain an
IrType
for a known type given it’s fully qualified name and type arguments? I need to refer to a known type that is not in the
IrBuiltins
constants.
i

Ilmir Usmanov [JB]

06/13/2019, 2:08 PM
Yes. Something like
Copy code
jvmBackendContext.getTopLevelClass(fqName).createType(...)
Unfortunately,
getTopLevelClass
is internal, though.
😱 1
2 Views