Index: tests/compiler/dart2js/diagnostic_helper.dart |
diff --git a/tests/compiler/dart2js/diagnostic_helper.dart b/tests/compiler/dart2js/diagnostic_helper.dart |
index 6f63e8a3a859fc1a7eb272eaf3afe5b70c1b9975..e5d433d2eb69ed9e42c9557296d3f8eacebef441 100644 |
--- a/tests/compiler/dart2js/diagnostic_helper.dart |
+++ b/tests/compiler/dart2js/diagnostic_helper.dart |
@@ -35,8 +35,8 @@ class DiagnosticCollector implements CompilerDiagnostics { |
List<CollectedMessage> messages = <CollectedMessage>[]; |
@override |
- void report(Message message, Uri uri, int begin, int end, String text, |
- Diagnostic kind) { |
+ void report(covariant Message message, Uri uri, int begin, int end, |
+ String text, Diagnostic kind) { |
messages.add(new CollectedMessage(message, uri, begin, end, text, kind)); |
} |