Index: pkg/analysis_server/test/services/correction/fix_test.dart |
diff --git a/pkg/analysis_server/test/services/correction/fix_test.dart b/pkg/analysis_server/test/services/correction/fix_test.dart |
index d43d0a1d2194ee10e21225ca84521bca98835441..6516f5bd6ef6f8c2496bf6131cedb85c2f3846fa 100644 |
--- a/pkg/analysis_server/test/services/correction/fix_test.dart |
+++ b/pkg/analysis_server/test/services/correction/fix_test.dart |
@@ -1545,7 +1545,7 @@ class B extends A { |
'''); |
} |
- void test_createMissingOverrides_generics() { |
+ void test_createMissingOverrides_generics_typeArguments() { |
resolveTestUnit(''' |
class Iterator<T> { |
} |
@@ -1573,6 +1573,29 @@ class Test extends IterableMixin<int> { |
'''); |
} |
+ void test_createMissingOverrides_generics_typeParameters() { |
+ resolveTestUnit(''' |
+abstract class ItemProvider<T> { |
+ List<T> getItems(); |
+} |
+ |
+class Test<V> extends ItemProvider<V> { |
+} |
+'''); |
+ assertHasFix(DartFixKind.CREATE_MISSING_OVERRIDES, ''' |
+abstract class ItemProvider<T> { |
+ List<T> getItems(); |
+} |
+ |
+class Test<V> extends ItemProvider<V> { |
+ @override |
+ List<V> getItems() { |
+ // TODO: implement getItems |
+ } |
+} |
+'''); |
+ } |
+ |
void test_createMissingOverrides_getter() { |
resolveTestUnit(''' |
abstract class A { |