Index: tests/compiler/dart2js/unparser2_test.dart |
diff --git a/tests/compiler/dart2js/unparser2_test.dart b/tests/compiler/dart2js/unparser2_test.dart |
index d3ede31fcae7108b2a2d4b044c9d8f8d5f12d653..458b6f37f476f500611ac3e55e397dcfac497b24 100644 |
--- a/tests/compiler/dart2js/unparser2_test.dart |
+++ b/tests/compiler/dart2js/unparser2_test.dart |
@@ -102,7 +102,7 @@ class MessageCollector extends DiagnosticReporter { |
MessageCollector() { |
messages = []; |
} |
- void internalError(node, String reason) { |
+ void internalError(node, covariant String reason) { |
messages.add(reason); |
throw reason; |
} |