| 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 d71ba6fbc57c52eb367262c14ad4101660e66b40..c1e255f12b569388538ae8a978c16db96ec20489 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
|
| @@ -629,9 +629,12 @@ class CompileTimeConstantEvaluator extends Visitor {
|
| compileConstant,
|
| compiler);
|
| if (!succeeded) {
|
| + String name = Elements.constructorNameForDiagnostics(
|
| + target.enclosingClass.name, target.name);
|
| compiler.reportFatalError(
|
| node,
|
| - MessageKind.INVALID_ARGUMENTS, {'methodName': target.name});
|
| + MessageKind.INVALID_CONSTRUCTOR_ARGUMENTS,
|
| + {'constructorName': name});
|
| }
|
| return compiledArguments;
|
| }
|
|
|