| Index: dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart
|
| diff --git a/dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart b/dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart
|
| index 386bb6dc54b60926092e4215596699fccdb3c475..b59e28eedb00524b34089b80d469c71c29c53494 100644
|
| --- a/dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart
|
| +++ b/dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart
|
| @@ -1143,13 +1143,14 @@ class InitializerResolver {
|
| MessageKind kind = isImplicitSuperCall
|
| ? MessageKind.CANNOT_RESOLVE_CONSTRUCTOR_FOR_IMPLICIT
|
| : MessageKind.CANNOT_RESOLVE_CONSTRUCTOR;
|
| - error(diagnosticNode, kind, {'constructorName': fullConstructorName});
|
| + visitor.compiler.reportErrorCode(
|
| + diagnosticNode, kind, {'constructorName': fullConstructorName});
|
| } else {
|
| if (!call.applies(lookedupConstructor, visitor.compiler)) {
|
| MessageKind kind = isImplicitSuperCall
|
| ? MessageKind.NO_MATCHING_CONSTRUCTOR_FOR_IMPLICIT
|
| : MessageKind.NO_MATCHING_CONSTRUCTOR;
|
| - error(diagnosticNode, kind);
|
| + visitor.compiler.reportErrorCode(diagnosticNode, kind);
|
| }
|
| }
|
| }
|
|
|