| Index: pkg/compiler/lib/src/resolution/send_structure.dart
|
| diff --git a/pkg/compiler/lib/src/resolution/send_structure.dart b/pkg/compiler/lib/src/resolution/send_structure.dart
|
| index 6f9d97fb0ef705d21bd6a0644389850814c38931..799b0a2ca240c9f3f78dfd7d96a23a7ddcd41048 100644
|
| --- a/pkg/compiler/lib/src/resolution/send_structure.dart
|
| +++ b/pkg/compiler/lib/src/resolution/send_structure.dart
|
| @@ -2116,8 +2116,7 @@ class NewInvokeStructure<R, A> extends NewStructure<R, A> {
|
| ConstructorElement effectiveTarget = constructor.effectiveTarget;
|
| ResolutionInterfaceType effectiveTargetType =
|
| constructor.computeEffectiveTargetType(semantics.type);
|
| - if (callStructure
|
| - .signatureApplies(effectiveTarget.functionSignature)) {
|
| + if (callStructure.signatureApplies(effectiveTarget.type)) {
|
| return visitor.visitRedirectingFactoryConstructorInvoke(
|
| node,
|
| semantics.element,
|
| @@ -2137,7 +2136,7 @@ class NewInvokeStructure<R, A> extends NewStructure<R, A> {
|
| arg);
|
| }
|
| }
|
| - if (callStructure.signatureApplies(constructor.functionSignature)) {
|
| + if (callStructure.signatureApplies(constructor.type)) {
|
| return visitor.visitFactoryConstructorInvoke(node, constructor,
|
| semantics.type, node.send.argumentsNode, callStructure, arg);
|
| }
|
|
|