| Index: pkg/analyzer/lib/src/error/codes.dart
|
| diff --git a/pkg/analyzer/lib/src/error/codes.dart b/pkg/analyzer/lib/src/error/codes.dart
|
| index 48702e6b268fba3c33cbb677c3664a9379ec106f..10c39cb2ac00cff925a23703233004472955b1f5 100644
|
| --- a/pkg/analyzer/lib/src/error/codes.dart
|
| +++ b/pkg/analyzer/lib/src/error/codes.dart
|
| @@ -3086,6 +3086,22 @@ class StaticTypeWarningCode extends ErrorCode {
|
| "Try adjusting the number of type arguments.");
|
|
|
| /**
|
| + * It will be a static type warning if <i>m</i> is not a generic method with
|
| + * exactly <i>n</i> type parameters.
|
| + *
|
| + * Parameters:
|
| + * 0: the name of the method being referenced (<i>G</i>)
|
| + * 1: the number of type parameters that were declared
|
| + * 2: the number of type arguments provided
|
| + */
|
| + static const StaticTypeWarningCode WRONG_NUMBER_OF_TYPE_ARGUMENTS_METHOD =
|
| + const StaticTypeWarningCode(
|
| + 'WRONG_NUMBER_OF_TYPE_ARGUMENTS_METHOD',
|
| + "The method '{0}' is declared with {1} type parameters, "
|
| + "but {2} type arguments were given.",
|
| + "Try adjusting the number of type arguments.");
|
| +
|
| + /**
|
| * 17.16.1 Yield: Let T be the static type of e [the expression to the right
|
| * of "yield"] and let f be the immediately enclosing function. It is a
|
| * static type warning if either:
|
|
|