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)
Vladimir Tagakov
06/23/2022, 11:51 PM
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
Vladimir Tagakov
06/23/2022, 11:52 PM
Also the place is in a critical path of my code, so I’m trying to do as less work as possible there ^_^
Vladimir Tagakov
06/23/2022, 11:55 PM
I can see that inner
kotlinType
reference could be checked like
kotlinType is FlexibleType
but it will require reflection since it is not public >_<