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

simpler named arguments translation for pure arguments #7656

Open
scabug opened this issue Jul 13, 2013 · 3 comments
Open

simpler named arguments translation for pure arguments #7656

scabug opened this issue Jul 13, 2013 · 3 comments

Comments

@scabug
Copy link

scabug commented Jul 13, 2013

To avoid:

Added @deprecated(since = "now", message = "Bla bla bla") to a class, and got this:

Usage of named or default arguments transformed this annotation constructor call into a block. The corresponding AnnotationInfo will contain references to local values and default getters instead of the actual argument trees

We should detect when the arguments are pure (literals, idents that won't trigger any computation (including lazy val init or module init), and just reorder the arguments without a block.

@scabug
Copy link
Author

scabug commented Jul 13, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7656?orig=1
Reporter: @retronym
Affected Versions: 2.10.0
See #8868

@scabug
Copy link
Author

scabug commented Jul 13, 2013

@scabug
Copy link
Author

scabug commented Sep 30, 2014

@scabug scabug added this to the Backlog milestone Apr 7, 2017
@scala scala deleted a comment from scabug Oct 14, 2023
@scala scala deleted a comment from scabug Oct 14, 2023
@scala scala deleted a comment from scabug Oct 14, 2023
@scala scala deleted a comment from scabug Oct 14, 2023
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

2 participants