Index: pkg/analysis_server/test/analysis/notification_highlights_test2.dart |
diff --git a/pkg/analysis_server/test/analysis/notification_highlights_test2.dart b/pkg/analysis_server/test/analysis/notification_highlights_test2.dart |
index 002bb1b9dacc63bff04cccafcf12ff0586bb3cd0..f6194dcd1a9d6c2b23c8e13872aba83c91e2a9a3 100644 |
--- a/pkg/analysis_server/test/analysis/notification_highlights_test2.dart |
+++ b/pkg/analysis_server/test/analysis/notification_highlights_test2.dart |
@@ -731,6 +731,19 @@ main(A a) { |
}); |
} |
+ test_INSTANCE_FIELD_dynamic() { |
+ addTestFile(''' |
+class A { |
+ var f; |
+ A(this.f); |
+} |
+'''); |
+ return prepareHighlights().then((_) { |
+ assertHasRegion(HighlightRegionType.INSTANCE_FIELD_DECLARATION, 'f;'); |
+ assertHasRegion(HighlightRegionType.INSTANCE_FIELD_REFERENCE, 'f);'); |
+ }); |
+ } |
+ |
test_KEYWORD() { |
addTestFile(''' |
main() { |