-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Constant variables in dartc #3323
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
Comments
Could you please give an example with your expectation and describe what the actual behavior is? Added Area-Analyzer, NeedsInfo labels. |
This comment was originally written by [email protected] A simple test: const x = 1; main() { Dartc should not produce any warnings or errors. It looks like dartc does not support const as a variable modifier. |
None of the implementations currently support the new const syntax from spec version 0.7, including the constant variable part. |
Added this to the M1 milestone. |
Marked this as being blocked by #3394. |
This issue was originally filed by [email protected]
Support constant variables in the static analyzer.
The text was updated successfully, but these errors were encountered: