Skip to content

KSP2: fix the type of vararg for Kotlin sources#2381

Merged
ting-yuan merged 2 commits into
google:mainfrom
ting-yuan:vararg
Mar 19, 2025
Merged

KSP2: fix the type of vararg for Kotlin sources#2381
ting-yuan merged 2 commits into
google:mainfrom
ting-yuan:vararg

Conversation

@ting-yuan

Copy link
Copy Markdown
Contributor

Previously, KSValueParameter.type was an array when it is from Kotlin sources, while it is the declared type for Java and libraries.

For example, the KSValueParameter.type of strings is now consistently String.

fun (vararg strings: String)

The equivalentJavaWildcards test is updated due to a toString() change.

Previously, KSValueParameter.type was an array when it is from Kotlin
sources, while it is the declared type for Java and libraries.

For example, the KSValueParameter.type of strings is now consistently
String.

    fun (vararg strings: String)

The equivalentJavaWildcards test is updated due to a toString() change.
@ting-yuan ting-yuan merged commit d7cc8a3 into google:main Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[KSP2] resolved type of vararg parameter in functions changed vs KSP1

3 participants