Skip to content

simpler named arguments translation for pure arguments #7656

@scabug

Description

@scabug

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions