| Index: pkg/analyzer/test/generated/hint_code_test.dart
|
| diff --git a/pkg/analyzer/test/generated/hint_code_test.dart b/pkg/analyzer/test/generated/hint_code_test.dart
|
| index bc5c9829dd2dfc060ebf4a60ee98ad0fe4af944d..7a05a39ed3c9f0e1110ba3de3fec1cc73f33e665 100644
|
| --- a/pkg/analyzer/test/generated/hint_code_test.dart
|
| +++ b/pkg/analyzer/test/generated/hint_code_test.dart
|
| @@ -658,6 +658,28 @@ class A {
|
| verify([source]);
|
| }
|
|
|
| + void test_deprecatedAnnotationUse_positional() {
|
| + Source source = addSource(r'''
|
| +class A {
|
| + m([@deprecated int x]) {}
|
| + n() {m(1);}
|
| +}''');
|
| + computeLibrarySourceErrors(source);
|
| + assertErrors(source, [HintCode.DEPRECATED_MEMBER_USE]);
|
| + verify([source]);
|
| + }
|
| +
|
| + void test_deprecatedAnnotationUse_named() {
|
| + Source source = addSource(r'''
|
| +class A {
|
| + m({@deprecated int x}) {}
|
| + n() {m(x: 1);}
|
| +}''');
|
| + computeLibrarySourceErrors(source);
|
| + assertErrors(source, [HintCode.DEPRECATED_MEMBER_USE]);
|
| + verify([source]);
|
| + }
|
| +
|
| void test_deprecatedAnnotationUse_export() {
|
| Source source = addSource("export 'deprecated_library.dart';");
|
| addNamedSource(
|
|
|