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 da08e995a2520b063da670f0ae74b20c2a4e1555..853a4488837dafc316da747af9ec0f5dcc30426f 100644 |
--- a/pkg/analysis_server/test/services/correction/fix_test.dart |
+++ b/pkg/analysis_server/test/services/correction/fix_test.dart |
@@ -4341,6 +4341,16 @@ main() { |
await assertNoFix(DartFixKind.CREATE_METHOD); |
} |
+ test_undefinedMethod_create_BAD_targetIsEnum() async { |
+ resolveTestUnit(''' |
+enum MyEnum {A, B} |
+main() { |
+ MyEnum.foo(); |
+} |
+'''); |
+ await assertNoFix(DartFixKind.CREATE_METHOD); |
+ } |
+ |
test_undefinedMethod_create_generic_BAD_argumentType() async { |
resolveTestUnit(''' |
class A<T> { |