Having a function like this:
interface Greeter {
fun hello(vararg names: String)
}
When going over the vararg paramter, you have a KSValueParameter with it.isVararg = true (both KSP1 and KSP2).
But when you resolve the type of the value paramter, you get different results with KSP1 vs KSP2:
- KSP1:
it.type.resolve() = String
- KSP2:
it.type.resolve() = Array<out String>
Is this intended?
Background is, that I am developing Konvert which needs to know the exact type.
Having a function like this:
When going over the
varargparamter, you have aKSValueParameterwithit.isVararg = true(both KSP1 and KSP2).But when you resolve the type of the value paramter, you get different results with KSP1 vs KSP2:
it.type.resolve() = Stringit.type.resolve() = Array<out String>Is this intended?
Background is, that I am developing Konvert which needs to know the exact type.