| Index: dart/runtime/vm/parser.cc
|
| ===================================================================
|
| --- dart/runtime/vm/parser.cc (revision 36615)
|
| +++ dart/runtime/vm/parser.cc (working copy)
|
| @@ -9178,6 +9178,11 @@
|
| // 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);
|
|
|