| Index: pkg/analyzer/test/generated/static_type_warning_code_test.dart
|
| diff --git a/pkg/analyzer/test/generated/static_type_warning_code_test.dart b/pkg/analyzer/test/generated/static_type_warning_code_test.dart
|
| index 99ab84c21c7f74b5be5fa4ff3bca74de1db49c6f..d98f837d29eb22ceffbf15c4851fa557bd16403b 100644
|
| --- a/pkg/analyzer/test/generated/static_type_warning_code_test.dart
|
| +++ b/pkg/analyzer/test/generated/static_type_warning_code_test.dart
|
| @@ -1600,6 +1600,19 @@ f() => A?.toString();
|
| assertErrors(source, [StaticTypeWarningCode.UNDEFINED_METHOD]);
|
| }
|
|
|
| + void test_undefinedMethodWithConstructor() {
|
| + Source source = addSource(r'''
|
| +class C {
|
| + C.m();
|
| +}
|
| +f() {
|
| + C c = C.m();
|
| +}''');
|
| + computeLibrarySourceErrors(source);
|
| + assertErrors(
|
| + source, [StaticTypeWarningCode.UNDEFINED_METHOD_WITH_CONSTRUCTOR]);
|
| + }
|
| +
|
| void test_undefinedOperator_indexBoth() {
|
| Source source = addSource(r'''
|
| class A {}
|
|
|