Index: pkg/analysis_server/test/services/completion/completion_test_util.dart |
diff --git a/pkg/analysis_server/test/services/completion/completion_test_util.dart b/pkg/analysis_server/test/services/completion/completion_test_util.dart |
index 453cdd3e317198d12baf7fb84162004302d39620..2e357d67c5cd217867e3d623b7ddaed7915cd0f7 100644 |
--- a/pkg/analysis_server/test/services/completion/completion_test_util.dart |
+++ b/pkg/analysis_server/test/services/completion/completion_test_util.dart |
@@ -4291,11 +4291,12 @@ abstract class AbstractSelectorSuggestionTest extends AbstractCompletionTest { |
test_SwitchStatement_case() { |
// SwitchStatement Block BlockFunctionBody MethodDeclaration |
- addTestSource('class A {String g(int x) {switch(x) {case 0: ^}}}'); |
+ addTestSource('class A {String g(int x) {var t; switch(x) {case 0: ^}}}'); |
computeFast(); |
return computeFull((bool result) { |
assertSuggestLocalClass('A'); |
assertSuggestLocalMethod('g', 'A', 'String'); |
+ assertSuggestLocalVariable('t', null); |
assertSuggestImportedClass('String'); |
}); |
} |