Index: pkg/compiler/lib/src/constants/constructors.dart |
diff --git a/pkg/compiler/lib/src/constants/constructors.dart b/pkg/compiler/lib/src/constants/constructors.dart |
index c0b3d12740c8d5d862f0a48e66728bab1ad3bc86..0e1ec121aa51384088a53456d63c202f1ca49a3a 100644 |
--- a/pkg/compiler/lib/src/constants/constructors.dart |
+++ b/pkg/compiler/lib/src/constants/constructors.dart |
@@ -39,15 +39,19 @@ abstract class ConstantConstructor { |
abstract class ConstantConstructorVisitor<R, A> { |
const ConstantConstructorVisitor(); |
- R visit(ConstantConstructor constantConstructor, A context) { |
+ R visit( |
+ covariant ConstantConstructor constantConstructor, covariant A context) { |
return constantConstructor.accept(this, context); |
} |
- R visitGenerative(GenerativeConstantConstructor constructor, A arg); |
+ R visitGenerative( |
+ covariant GenerativeConstantConstructor constructor, covariant A arg); |
R visitRedirectingGenerative( |
- RedirectingGenerativeConstantConstructor constructor, A arg); |
+ covariant RedirectingGenerativeConstantConstructor constructor, |
+ covariant A arg); |
R visitRedirectingFactory( |
- RedirectingFactoryConstantConstructor constructor, A arg); |
+ covariant RedirectingFactoryConstantConstructor constructor, |
+ covariant A arg); |
} |
/// A generative constant constructor. |