| 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 794ebf50b7e8669fe602e77251291ee406af9c27..1d1b11c5091bdf2b5b185bdf6ec14a3c7705f1b1 100644
|
| --- a/pkg/analyzer/test/generated/static_warning_code_test.dart
|
| +++ b/pkg/analyzer/test/generated/static_warning_code_test.dart
|
| @@ -374,7 +374,8 @@ g(h(_A a)) {}''');
|
| // The name _A is private to the library it's defined in, so this is a type
|
| // mismatch. Furthermore, the error message should mention both _A and the
|
| // filenames so the user can figure out what's going on.
|
| - List<AnalysisError> errors = analysisContext2.computeErrors(source);
|
| + TestAnalysisResult analysisResult = await computeAnalysisResult(source);
|
| + List<AnalysisError> errors = analysisResult.errors;
|
| expect(errors, hasLength(1));
|
| AnalysisError error = errors[0];
|
| expect(StaticWarningCode.ARGUMENT_TYPE_NOT_ASSIGNABLE, error.errorCode);
|
|
|