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

[KSP2] getSymbolsWithAnnotation() doesn't work if the annotation is an alias in KOTLIN_LIB #2024

Closed
kuanyingchou opened this issue Aug 8, 2024 · 0 comments · Fixed by #2182
Milestone

Comments

@kuanyingchou
Copy link
Collaborator

kuanyingchou commented Aug 8, 2024

This may be related to #1676 and Dagger's google/dagger#4356.

getSymbolsWithAnnotation() doesn't work with typealiases defined in KOTLIN_LIB in KSP2 while it was working in KSP1. Symbols annotated with an alias are missing when calling getSymbolsWithAnnotation(underlying_type) and nothing is returned when calling getSymbolsWithAnnotation(alias). Not sure if it's part of behavior change 3: Resolving references to type aliases in function types and annotations.

Repro: kuanyingchou@34ab22a

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 a pull request may close this issue.

2 participants