| 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 41cf63aa61cd6a61e5884e0dd61f60feb00ca712..7787e0ad3910985458469a9605b4fa2f8557f01e 100644
|
| --- a/pkg/analyzer/lib/src/error/codes.dart
|
| +++ b/pkg/analyzer/lib/src/error/codes.dart
|
| @@ -1457,6 +1457,16 @@ class CompileTimeErrorCode extends ErrorCode {
|
| "Try replacing the type parameter with a different type.");
|
|
|
| /**
|
| + * The 'covariant' keyword was found in an inappropriate location.
|
| + */
|
| + static const CompileTimeErrorCode INVALID_USE_OF_COVARIANT =
|
| + const CompileTimeErrorCode(
|
| + 'INVALID_USE_OF_COVARIANT',
|
| + "The 'covariant' keyword can only be used for parameters in instance "
|
| + "methods or before non-final instance fields.",
|
| + "Try removing the 'covariant' keyword.");
|
| +
|
| + /**
|
| * 14.2 Exports: It is a compile-time error if the compilation unit found at
|
| * the specified URI is not a library declaration.
|
| *
|
|
|