Is it possible to check if a `KsType` is generic? ...
# ksp
j
Is it possible to check if a
KsType
is generic?
Copy code
data class Test<T> (
    val a: String,
    val b: T,
)
...
constructorParameter.type.isGeneric // Something like that doesn't exist
constructorParameter.type.toClassName()
works on
a
but crashes on
b
And based on a
KSDeclasration
is it possible to check if it has any generic types?
e
https://github.com/google/ksp/issues/12 is this what you are looking for?