| Index: pkg/analyzer/test/generated/static_warning_code_test.dart
|
| diff --git a/pkg/analyzer/test/generated/static_warning_code_test.dart b/pkg/analyzer/test/generated/static_warning_code_test.dart
|
| index 6b26293bd99c8c32bb6859de39c2e861f62b6fa0..e18ebe59026887bce0ca15fad5ba9b597fbadb70 100644
|
| --- a/pkg/analyzer/test/generated/static_warning_code_test.dart
|
| +++ b/pkg/analyzer/test/generated/static_warning_code_test.dart
|
| @@ -1504,61 +1504,61 @@ class A implements Function {
|
| verify([source]);
|
| }
|
|
|
| - test_functionWithoutCall_indirect_extends() async {
|
| + test_functionWithoutCall_direct_typeAlias() async {
|
| Source source = addSource(r'''
|
| -abstract class A implements Function {
|
| -}
|
| -class B extends A {
|
| -}''');
|
| +class M {}
|
| +class A = Object with M implements Function;''');
|
| await computeAnalysisResult(source);
|
| assertErrors(source, [StaticWarningCode.FUNCTION_WITHOUT_CALL]);
|
| verify([source]);
|
| }
|
|
|
| - test_functionWithoutCall_indirect_implements() async {
|
| + test_functionWithoutCall_indirect_extends() async {
|
| Source source = addSource(r'''
|
| abstract class A implements Function {
|
| }
|
| -class B implements A {
|
| +class B extends A {
|
| }''');
|
| await computeAnalysisResult(source);
|
| assertErrors(source, [StaticWarningCode.FUNCTION_WITHOUT_CALL]);
|
| verify([source]);
|
| }
|
|
|
| - test_functionWithoutCall_mixin_implements() async {
|
| + test_functionWithoutCall_indirect_extends_typeAlias() async {
|
| Source source = addSource(r'''
|
| abstract class A implements Function {}
|
| -class B extends Object with A {}''');
|
| +class M {}
|
| +class B = A with M;''');
|
| await computeAnalysisResult(source);
|
| assertErrors(source, [StaticWarningCode.FUNCTION_WITHOUT_CALL]);
|
| verify([source]);
|
| }
|
|
|
| - test_functionWithoutCall_direct_typeAlias() async {
|
| + test_functionWithoutCall_indirect_implements() async {
|
| Source source = addSource(r'''
|
| -class M {}
|
| -class A = Object with M implements Function;''');
|
| +abstract class A implements Function {
|
| +}
|
| +class B implements A {
|
| +}''');
|
| await computeAnalysisResult(source);
|
| assertErrors(source, [StaticWarningCode.FUNCTION_WITHOUT_CALL]);
|
| verify([source]);
|
| }
|
|
|
| - test_functionWithoutCall_indirect_extends_typeAlias() async {
|
| + test_functionWithoutCall_indirect_implements_typeAlias() async {
|
| Source source = addSource(r'''
|
| abstract class A implements Function {}
|
| class M {}
|
| -class B = A with M;''');
|
| +class B = Object with M implements A;''');
|
| await computeAnalysisResult(source);
|
| assertErrors(source, [StaticWarningCode.FUNCTION_WITHOUT_CALL]);
|
| verify([source]);
|
| }
|
|
|
| - test_functionWithoutCall_indirect_implements_typeAlias() async {
|
| + test_functionWithoutCall_mixin_implements() async {
|
| Source source = addSource(r'''
|
| abstract class A implements Function {}
|
| -class M {}
|
| -class B = Object with M implements A;''');
|
| +class B extends Object with A {}''');
|
| await computeAnalysisResult(source);
|
| assertErrors(source, [StaticWarningCode.FUNCTION_WITHOUT_CALL]);
|
| verify([source]);
|
|
|