Index: tests/compiler/dart2js/compiler_test.dart |
diff --git a/tests/compiler/dart2js/compiler_test.dart b/tests/compiler/dart2js/compiler_test.dart |
index 0b2631c7420babdd3111662ccf441b958a7a6fa2..59b94d47cbe8d2873ee3fa5f61f92de017ed183b 100644 |
--- a/tests/compiler/dart2js/compiler_test.dart |
+++ b/tests/compiler/dart2js/compiler_test.dart |
@@ -20,9 +20,11 @@ class CallbackMockCompiler extends MockCompiler { |
setOnError(var f) => onError = f; |
setOnWarning(var f) => onWarning = f; |
- void reportWarning(Node node, var message) { |
- if (onWarning != null) onWarning(this, node, message); |
- super.reportWarning(node, message); |
+ void reportWarning(Spannable node, |
+ MessageKind errorCode, |
+ [Map arguments = const {}]) { |
+ if (onWarning != null) onWarning(this, node, errorCode.error(arguments)); |
+ super.reportWarning(node, errorCode, arguments); |
} |
void reportError(Spannable node, |