Index: pkg/compiler/lib/src/resolution/send_resolver.dart |
diff --git a/pkg/compiler/lib/src/resolution/send_resolver.dart b/pkg/compiler/lib/src/resolution/send_resolver.dart |
index fa8cacc84a854af5b1aa865542c45346a041c58a..d3f4e61a0de559b90d27e64d3d9d8df4771f6b1b 100644 |
--- a/pkg/compiler/lib/src/resolution/send_resolver.dart |
+++ b/pkg/compiler/lib/src/resolution/send_resolver.dart |
@@ -333,7 +333,9 @@ abstract class SendResolverMixin { |
case AccessKind.SUPER_METHOD: |
case AccessKind.TOPLEVEL_METHOD: |
// TODO(johnniwinther): Should local function also be handled here? |
- if (!selector.callStructure.signatureApplies(semantics.element)) { |
+ FunctionElement function = semantics.element; |
+ FunctionSignature signature = function.functionSignature; |
+ if (!selector.callStructure.signatureApplies(signature)) { |
return new IncompatibleInvokeStructure(semantics, selector); |
} |
break; |
@@ -586,7 +588,7 @@ abstract class SendResolverMixin { |
type, |
effectiveTargetSemantics); |
} else { |
- if (!callStructure.signatureApplies(constructor)) { |
+ if (!callStructure.signatureApplies(constructor.functionSignature)) { |
return new ConstructorAccessSemantics( |
ConstructorAccessKind.INCOMPATIBLE, |
constructor, |