Index: sdk/lib/_internal/compiler/implementation/compile_time_constants.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart b/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart |
index d0bb37b0db22a20b9b5cd622bdf734d3940dd68a..fc648ad64f111326b1dc94bb7d0f44a9753670c8 100644 |
--- a/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart |
+++ b/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart |
@@ -305,7 +305,7 @@ class CompileTimeConstantEvaluator extends Visitor { |
if (!map.containsKey(key)) { |
keys.add(key); |
} else { |
- compiler.reportWarningCode(entry.key, MessageKind.EQUAL_MAP_ENTRY_KEY); |
+ compiler.reportWarning(entry.key, MessageKind.EQUAL_MAP_ENTRY_KEY); |
} |
map[key] = evaluateConstant(entry.value); |
} |