Chromium Code Reviews| Index: runtime/vm/parser.cc |
| =================================================================== |
| --- runtime/vm/parser.cc (revision 27923) |
| +++ runtime/vm/parser.cc (working copy) |
| @@ -5339,6 +5339,8 @@ |
| if (is_const) { |
| ASSERT(expr->IsLiteralNode()); |
| variable->SetConstValue(expr->AsLiteralNode()->literal()); |
| + } else if (is_final && expr->IsLiteralNode()) { |
| + variable->SetConstValue(expr->AsLiteralNode()->literal()); |
| } |
| } else if (is_final || is_const) { |
| ErrorMsg(ident_pos, |