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

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

Issue 2618653002: Issue 28261. Add support for implementing generic methods in Quick Fix. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/util.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b07956175046556e79b483f36eb2e7a75b41ba78..f61e104fd38509ded113c7dd0be364cbee33bce1 100644
--- a/pkg/analysis_server/test/services/correction/fix_test.dart
+++ b/pkg/analysis_server/test/services/correction/fix_test.dart
@@ -2619,6 +2619,37 @@ class B extends A {
''');
}
+ test_createMissingOverrides_method_generic() async {
+ resolveTestUnit('''
+class C<T> {}
+class V<E> {}
+
+abstract class A {
+ E foo<E extends C<int>>(V<E> v);
+}
+
+class B implements A {
+}
+''');
+ await assertHasFix(
+ DartFixKind.CREATE_MISSING_OVERRIDES,
+ '''
+class C<T> {}
+class V<E> {}
+
+abstract class A {
+ E foo<E extends C<int>>(V<E> v);
+}
+
+class B implements A {
+ @override
+ E foo<E extends C<int>>(V<E> v) {
+ // TODO: implement foo
+ }
+}
+''');
+ }
+
test_createMissingOverrides_operator() async {
resolveTestUnit('''
abstract class A {
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/util.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698