Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Unified Diff: pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart

Issue 1960783002: Don't suggest types, getters, etc in 'for (Type ^)'. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart
diff --git a/pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart
index 6382e35a6e1816311264f2f238df7b34da121922..3b6e0f9f1873e7d2f073973744a3bd0ccfc4a3a1 100644
--- a/pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart
@@ -2166,6 +2166,12 @@ int myFunc() {}
assertSuggestClass('int');
}
+ test_ForStatement_initializer_variableName_afterType() async {
+ addTestSource('main() { for (String ^) }');
+ await computeSuggestions();
+ assertNotSuggested('int');
+ }
+
test_ForStatement_typing_inKeyword() async {
addTestSource('main() { for (var v i^) }');
await computeSuggestions();

Powered by Google App Engine
This is Rietveld 408576698