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

modifiers missing for annotated property accessor #1811

Open
wanyingd1996 opened this issue Apr 1, 2024 · 0 comments
Open

modifiers missing for annotated property accessor #1811

wanyingd1996 opened this issue Apr 1, 2024 · 0 comments

Comments

@wanyingd1996
Copy link

Hi, Ksp team.

When I have

annotation class MyAnnotation

interface MyInterface {
  var y: Int
    @MyAnnotation get
}

the corresponding property accessor and property both end up with empty modifier set.

without the annotation, the modifier set has ABSTRACT.

Also this behavior only happens when inspecting the file as source. If the source is precompiled, then ksp does get the correct modifiers.

Dagger Ksp ran into this issue when trying to parse all abstract method from the interface, we are not seeing the getter in the list. google/dagger#4225

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