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 ec47b6a9ca4c487468ab130cbb25173ca76f5edc..c5bede5ae568ad66ac368196655a47e07d145f44 100644 |
--- a/pkg/analyzer/test/generated/static_warning_code_test.dart |
+++ b/pkg/analyzer/test/generated/static_warning_code_test.dart |
@@ -3371,6 +3371,17 @@ f(var l) { |
assertErrors(source, [StaticWarningCode.UNDEFINED_IDENTIFIER]); |
} |
+ void test_undefinedIdentifier_importCore_withShow() { |
+ Source source = addSource(r''' |
+import 'dart:core' show List; |
+main() { |
+ List; |
+ String; |
+}'''); |
+ computeLibrarySourceErrors(source); |
+ assertErrors(source, [StaticWarningCode.UNDEFINED_IDENTIFIER]); |
+ } |
+ |
void test_undefinedIdentifier_initializer() { |
Source source = addSource("var a = b;"); |
computeLibrarySourceErrors(source); |