Commit Graph

4 Commits

Author SHA1 Message Date
lrn@google.com 95dfe795f4 Change remaining "final" to "const" in language/const_syntax_test.
R=karlklose@google.com

Review URL: https://chromiumcodereview.appspot.com//10918046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11763 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-03 12:55:39 +00:00
iposva@google.com fedcff55ed - Change "static final" to "static const" in the tests/ directory.
Review URL: https://chromiumcodereview.appspot.com//10871071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11350 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 22:21:20 +00:00
hausner@google.com 741a12cfd6 Support const modifier in fields, variables
Issue 3551

This change adds const as a valid keyword to declare fields and
variables. The mandatory initializer has to be a compile time
const expression.

Static final variables still have to be initialized with
compile time constant expressions. I will add non-const static
finals (issue 3558) in another change.

Other small changes:
- allow null in some compile time constant expressions.
- allow only numbers, booleans, strings and null in compile time
  constant string interpolation.
Review URL: https://chromiumcodereview.appspot.com//10828053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9992 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-27 20:49:24 +00:00
sigmund@google.com 64d7bc5acf test rename overhaul: step 8 - language tests
Review URL: https://chromiumcodereview.appspot.com//10248007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7101 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 18:45:10 +00:00