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

Constant string values are not rendered correctly when used for annotation messages #3611

Open
JKRhb opened this issue Dec 20, 2023 · 0 comments
Labels
P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@JKRhb
Copy link

JKRhb commented Dec 20, 2023

As I encountered problems with adjacent strings as input for annotation messages as described in #2393, I tried using a string constant as input instead, like so:

const pleaseRenderMe = 'I am not rendered :(';

@Deprecated(pleaseRenderMe)
void foo() {
  print('bar');
}

However, using this approach led to a different kind of problem, namely that not the constant value, but its name is being rendered in the annotation, which does not seem like the intended behavior, especially since you cannot click on the referenced constant to see its value directly from the annotation:

image
@srawlins srawlins added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) P3 A lower priority bug or feature request labels Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants