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

Unified Diff: pkg/analysis_server/test/services/correction/assist_test.dart

Issue 1753893002: Issue 25827. Don't propose to remove the type of an incomplete variable declaration. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/correction/assist_test.dart
diff --git a/pkg/analysis_server/test/services/correction/assist_test.dart b/pkg/analysis_server/test/services/correction/assist_test.dart
index 42513f362aedebce1c78491c0eb4e96d6de95e7b..5c84d352885c1f3b5fab087751562723121bd129 100644
--- a/pkg/analysis_server/test/services/correction/assist_test.dart
+++ b/pkg/analysis_server/test/services/correction/assist_test.dart
@@ -3317,6 +3317,14 @@ main() {
''');
}
+ test_removeTypeAnnotation_topLevelVariable_BAD_syntheticName() async {
+ verifyNoTestUnitErrors = false;
+ resolveTestUnit('''
+MyType
+''');
+ await assertNoAssistAt('MyType', DartAssistKind.REMOVE_TYPE_ANNOTATION);
+ }
+
test_removeTypeAnnotation_topLevelVariable_OK() async {
resolveTestUnit('''
int V = 1;

Powered by Google App Engine
This is Rietveld 408576698