Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Implement static const variables #3394

Closed
sethladd opened this issue Jun 5, 2012 · 6 comments
Closed

Implement static const variables #3394

sethladd opened this issue Jun 5, 2012 · 6 comments
Labels
area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). closed-duplicate Closed in favor of an existing report type-enhancement A request for a change that isn't a bug

Comments

@sethladd
Copy link
Contributor

sethladd commented Jun 5, 2012

New language feature.

A constant expression is an expression whose value can never change, and that can be evaluated entirely at compile time. A constant expression is one of the following:

A reference to a constant variable.

A constant variable is a variable whose declaration includes the modifier const. A constant variable is always implicitly final. A constant variable must be initialized to a compile-time constant or a compile-time error occurs.
Constant variables are not yet implemented.

See also http://www.dartlang.org/docs/spec/latest/dart-language-specification.html

@sethladd
Copy link
Contributor Author

sethladd commented Jun 5, 2012

Added Triaged label.

@sethladd
Copy link
Contributor Author

sethladd commented Jun 5, 2012

Marked this as being blocked by #3395.

@anders-sandholm
Copy link
Contributor

Added Area-Language label.
Unmarked this as being blocked by #3395, #2505, #3323.

@anders-sandholm
Copy link
Contributor

Closing as this is implemented in the spec.
Tracking implementation progress in issue #2505, issue #3395 and issue #3323.


Added Done label.

@anders-sandholm
Copy link
Contributor

Added Duplicate label.
Marked as being merged into #3549.

@DartBot
Copy link

DartBot commented Apr 7, 2013

This comment was originally written by amouravski@google.com


Removed Type-Meta label.
Added Type-Enhancement label.

@sethladd sethladd added Priority-Medium area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). closed-duplicate Closed in favor of an existing report labels Apr 7, 2013
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed type-enhancement labels Mar 1, 2016
This issue was closed.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). closed-duplicate Closed in favor of an existing report type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants