Index: pkg/analyzer/test/generated/resolver_test.dart |
diff --git a/pkg/analyzer/test/generated/resolver_test.dart b/pkg/analyzer/test/generated/resolver_test.dart |
index 152b2661f8663c43dba0cf16fcd4439094e78d68..c32fb53e5b46d3f246b41c09bd1fd6ea08008e77 100644 |
--- a/pkg/analyzer/test/generated/resolver_test.dart |
+++ b/pkg/analyzer/test/generated/resolver_test.dart |
@@ -3552,6 +3552,21 @@ abstract class B implements A { |
verify([source]); |
} |
+ void test_invalidUseOfProtectedMember_topLevelVariable() { |
+ Source source = addSource(r''' |
+import 'package:meta/meta.dart'; |
+@protected |
+int x = 0; |
+main() { |
+ print(x); |
+}'''); |
+ computeLibrarySourceErrors(source); |
+ // TODO(brianwilkerson) This should produce a hint because the annotation is |
+ // being applied to the wrong kind of declaration. |
+ assertNoErrors(source); |
+ verify([source]); |
+ } |
+ |
void test_isDouble() { |
AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
options.dart2jsHint = true; |