Stylianos Gakis
08/04/2022, 9:55 AMfun <T : SomeType> foo(param: Bar<T>): Unit {
asdf(myParam)
}
Is there some part of the docs which I am missing? If so I’d really appreciate any pointers.Stylianos Gakis
08/04/2022, 10:33 AMaddParameter(ClassName(...).parameterizedBy(//here))
and I completely missed the addTypeVariables
function. This is the first time I use KotlinPoet so I am not familiar with the entire API and the mental model of how everything should be hooked up.
Thanks a ton for this! I will however still file a bug in the repository to hopefully expand the docs a bit on this, I feel like it does deserve a spot in the samples given in https://square.github.io/kotlinpoet/Matthias Geisler
08/04/2022, 10:58 AMStylianos Gakis
08/04/2022, 11:05 AM