https://kotlinlang.org logo
#ksp
Title
# ksp
v

Vladimir Tagakov

06/23/2022, 11:49 PM
Is there any support for flexible types? Maybe someone can give me a hint how to convert parametrized flexible type to e regular one? (assuming that I don’t have nullable types that come from java)
I can use
makeNotNullable()
for the outer type, and plan to do the same for the argument, but I am not sure how to detect if type is flexible or not
Also the place is in a critical path of my code, so I’m trying to do as less work as possible there ^_^
I can see that inner
kotlinType
reference could be checked like
kotlinType is FlexibleType
but it will require reflection since it is not public >_<
j

Jiaxiang

06/29/2022, 8:53 PM
your helper function looks good to me.
🙏 1
2 Views