| Index: runtime/vm/parser.cc
|
| diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
|
| index 1bde3836f6d569ee4813a99eab900378b8e44c4c..ec66834826f717415247e292747f4a0a6c7ad090 100644
|
| --- a/runtime/vm/parser.cc
|
| +++ b/runtime/vm/parser.cc
|
| @@ -10299,6 +10299,9 @@ AstNode* Parser::ParsePrimary() {
|
| } else if (CurrentToken() == Token::kHASH) {
|
| primary = ParseSymbolLiteral();
|
| } else if (CurrentToken() == Token::kSUPER) {
|
| + if (parsing_metadata_) {
|
| + ErrorMsg("cannot access superclass from metadata");
|
| + }
|
| if (current_function().is_static()) {
|
| ErrorMsg("cannot access superclass from static method");
|
| }
|
|
|