We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vararg
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).
KSValueParameter
it.isVararg = true
But when you resolve the type of the value paramter, you get different results with KSP1 vs KSP2:
it.type.resolve() = String
it.type.resolve() = Array<out String>
Is this intended?
Background is, that I am developing Konvert which needs to know the exact type.
The text was updated successfully, but these errors were encountered:
The documentation is also not clear here, as it states vice-versa.
vararg parameters KSP1: Considered as an Array type KSP2: Not considered as an Array type
vararg parameters
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Having a function like this:
When going over the
vararg
paramter, you have aKSValueParameter
withit.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() = String
it.type.resolve() = Array<out String>
Is this intended?
Background is, that I am developing Konvert which needs to know the exact type.
The text was updated successfully, but these errors were encountered: