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

Variance is missing after asMemberOf call #1969

Open
kuanyingchou opened this issue Jun 12, 2024 · 0 comments
Open

Variance is missing after asMemberOf call #1969

kuanyingchou opened this issue Jun 12, 2024 · 0 comments

Comments

@kuanyingchou
Copy link
Collaborator

This is a KSP1 issue. When a Java field is of a generic Kotlin type with declaration site variance, its wildcard is lost after asMemberOf call. For example, the type of the field A<? extends Number> a; becomes (A<(Number..Number?)>..A<(Number..Number?)>?) instead of (A<out (Number..Number?)>..A<out (Number..Number?)>?), where A is defined as interface A<out T>.

Repro: kuanyingchou@8b1075b

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

No branches or pull requests

1 participant