| Index: runtime/vm/parser.cc
|
| diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
|
| index 66018e5894c60eaf9bf31b839a26b2fd88bd4ed3..699206e2660d295c96a4693494e30a1d236a04b6 100644
|
| --- a/runtime/vm/parser.cc
|
| +++ b/runtime/vm/parser.cc
|
| @@ -9171,6 +9171,11 @@ bool Parser::ResolveIdentInLocalScope(intptr_t ident_pos,
|
| // be found.
|
| AstNode* receiver = NULL;
|
| const bool kTestOnly = true;
|
| + if (parsing_metadata_) {
|
| + ErrorMsg(ident_pos,
|
| + "'%s' is not a compile-time constant",
|
| + ident.ToCString());
|
| + }
|
| if (!current_function().is_static() &&
|
| (LookupReceiver(current_block_->scope, kTestOnly) != NULL)) {
|
| receiver = LoadReceiver(ident_pos);
|
|
|