Join Slack
Communities
Powered by
arguments fulfill type parameters, so you have to ...
# ksp
z
Zac Sweers
09/15/2021, 3:11 PM
arguments fulfill
type parameters
, so you have to map them on to known type parameters. You can see how we do it in KotlinPoet here
https://github.com/square/kotlinpoet/blob/master/interop/ksp/src/main/kotlin/com/squareup/kotlinpoet/ksp/TypeParameterResolver.kt
https://github.com/square/kotlinpoet/blob/master/interop/ksp/src/main/kotlin/com/squareup/kotlinpoet/ksp/ksTypes.kt
With a WIP more formal doc that has a section about it here under the "Type Parameters" section -
https://github.com/square/kotlinpoet/pull/1149/files
4
Views
Open in Slack
Previous
Next