| Index: compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java
|
| ===================================================================
|
| --- compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java (revision 10845)
|
| +++ compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java (working copy)
|
| @@ -720,7 +720,7 @@
|
| @Override
|
| public Void visitVariableStatement(DartVariableStatement node) {
|
| Modifiers modifiers = node.getModifiers();
|
| - if (modifiers.isStatic() && modifiers.isFinal()) {
|
| + if (modifiers.isConstant() || (modifiers.isStatic() && modifiers.isFinal())) {
|
| for (DartVariable variable : node.getVariables()) {
|
| if (variable.getValue() != null) {
|
| checkConstantExpression(variable.getValue());
|
|
|