Index: pkg/analyzer/test/generated/static_warning_code_test.dart |
diff --git a/pkg/analyzer/test/generated/static_warning_code_test.dart b/pkg/analyzer/test/generated/static_warning_code_test.dart |
index 9eb44ab0c7b9dbc7f62539ac8c075e724eb0c5cb..21c37786dfe3899cc4de506d16c6a77dc4d562e6 100644 |
--- a/pkg/analyzer/test/generated/static_warning_code_test.dart |
+++ b/pkg/analyzer/test/generated/static_warning_code_test.dart |
@@ -3527,6 +3527,12 @@ f(var l) { |
assertErrors(source, [StaticWarningCode.UNDEFINED_IDENTIFIER]); |
} |
+ void test_undefinedIdentifierAwait_function() { |
+ Source source = addSource("void a() { await; }"); |
+ computeLibrarySourceErrors(source); |
+ assertErrors(source, [StaticWarningCode.UNDEFINED_IDENTIFIER_AWAIT]); |
+ } |
+ |
void test_undefinedIdentifier_importCore_withShow() { |
Source source = addSource(r''' |
import 'dart:core' show List; |