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

opt-into copying annotations to exports #19516

Open
bishabosha opened this issue Jan 23, 2024 · 0 comments
Open

opt-into copying annotations to exports #19516

bishabosha opened this issue Jan 23, 2024 · 0 comments

Comments

@bishabosha
Copy link
Member

bishabosha commented Jan 23, 2024

prompted by #19509 (comment)_ in general it may be useful to copy annotations to exported methods, however for some it leads to broken behavior - such as tailrec. So perhaps it should be opt-in. Unless no annotations are copied, and there is proposed another mechanism for recovery of annotation information from the forwarded entity.

Compiler version

3.4.0-RC2

Info

The thing is that we will never know what should be the behavior for custom annotations.

The only holistic solution here is to have an @meta-based indication of what to do. This is the approach used to determine whether annotations should go to fields/getters/setters. It would also be appropriate to determine whether it should go to exports/bridges/etc.

Originally posted by @sjrd in #19509 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant