I am using KOTLIN Poet to generated some code. I am stuck with adding star projection for a parameterized type. Could not find anything of adding star projection in KOTLIN Poet docs.
Is there a way to add star projection in KOTLIN Poet.
I am using KOTLIN Poet to generated some code. I am stuck with adding star projection for a parameterized type. Could not find anything of adding star projection in KOTLIN Poet docs.
Is there a way to add star projection in KOTLIN Poet.
To get a
TypeName
as a star projection, use:In a small example:
Outputs: