| Index: pkg/analyzer/test/generated/parser_test.dart
|
| diff --git a/pkg/analyzer/test/generated/parser_test.dart b/pkg/analyzer/test/generated/parser_test.dart
|
| index 7919ccf47363daee005ea713096405d7fe81cf55..023c9fab0ce2400f71f16b62697c2dbbb3b65b89 100644
|
| --- a/pkg/analyzer/test/generated/parser_test.dart
|
| +++ b/pkg/analyzer/test/generated/parser_test.dart
|
| @@ -2507,6 +2507,15 @@ class NonErrorParserTest extends ParserTestCase {
|
| void test_constFactory_external() {
|
| parse("parseClassMember", <Object>["C"], "external const factory C();");
|
| }
|
| +
|
| + void test_staticMethod_notParsingFunctionBodies() {
|
| + ParserTestCase.parseFunctionBodies = false;
|
| + try {
|
| + parse4("parseCompilationUnit", "class C { static void m() {} }");
|
| + } finally {
|
| + ParserTestCase.parseFunctionBodies = true;
|
| + }
|
| + }
|
| }
|
|
|
| class ParserTestCase extends EngineTestCase {
|
|
|