| 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 2c779c564928dbf413af12e2660b753ecc959f7e..ef9de06524c34681807e529104fa82478602743d 100644
|
| --- a/pkg/analyzer/test/generated/static_warning_code_test.dart
|
| +++ b/pkg/analyzer/test/generated/static_warning_code_test.dart
|
| @@ -1373,6 +1373,24 @@ class C extends B {
|
| verify([source]);
|
| }
|
|
|
| + void test_instanceMethodNameCollidesWithSuperclassStatic_interface() {
|
| + Source source = addSource(r'''
|
| +class Base {
|
| + static foo() {}
|
| +}
|
| +abstract class Ifc {
|
| + foo();
|
| +}
|
| +class C extends Base implements Ifc {
|
| + foo() {}
|
| +}
|
| +''');
|
| + resolve(source);
|
| + assertErrors(source, [
|
| + StaticWarningCode.INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLASS_STATIC]);
|
| + verify([source]);
|
| + }
|
| +
|
| void test_instanceMethodNameCollidesWithSuperclassStatic_method() {
|
| Source source = addSource(r'''
|
| class A {
|
|
|