Skip to content
New issue

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

Fix various issues around Resolver.getJavaWildcard #2304

Merged
merged 6 commits into from
Jan 27, 2025

Conversation

ting-yuan
Copy link
Collaborator

@ting-yuan ting-yuan commented Jan 25, 2025

  1. number of type parameters and type arguments mismatch. [ksp2] ksType.arguments will crash on a typealias's java wildcard type #2265
  2. Some out variances are incorrectly optimized away. [ksp2] getJavaWildcard does not return wildcard for List param (different with kapt/ksp1) #2264
  3. Star-projected invariant parameter should become covariant.

and also
4. Fixed type expansion; previously some type parameters were not substituted.
5. KSP1: KSTypeArgument.parent should be KSClassifierReference, instead of KSTypeReference.

finally,
6. Enabled the remaining tests around Resolver.getJavaWildcard.

@ting-yuan ting-yuan merged commit 0dfb6de into google:main Jan 27, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants