Chromium Code Reviews| Index: lib/compiler/implementation/resolution/members.dart |
| diff --git a/lib/compiler/implementation/resolution/members.dart b/lib/compiler/implementation/resolution/members.dart |
| index a6577afc5f3b0f359739cd5e11fc8b6205c58640..a7b872af3a23f155c6e6cd48e2c621e37ab88fbf 100644 |
| --- a/lib/compiler/implementation/resolution/members.dart |
| +++ b/lib/compiler/implementation/resolution/members.dart |
| @@ -1699,6 +1699,15 @@ class ResolverVisitor extends CommonResolverVisitor<Element> { |
| world.registerDynamicInvocation(call.name, call); |
| } |
| + if (!Elements.isUnresolved(target) |
| + && (target.kind == ElementKind.FUNCTION |
| + || target.kind == ElementKind.GENERATIVE_CONSTRUCTOR) |
|
ngeoffray
2012/10/25 11:24:09
Why do you need these kind checks?
karlklose
2012/10/25 13:55:44
I need to be able to compute the signature for the
|
| + && !selector.applies(target, compiler)) { |
| + // TODO(karlklose): we can be more precise about the reason of the |
| + // mismatch. |
| + warning(node, MessageKind.INVALID_ARGUMENTS, [target.name]); |
| + } |
| + |
| // TODO(ngeoffray): Warn if target is null and the send is |
| // unqualified. |
| useElement(node, target); |