Index: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (revision 27195) |
+++ sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (working copy) |
@@ -2047,7 +2047,7 @@ |
isThisExposed = true; |
if (node.isPropertyAccess) { |
return handleStaticSend(node, selector, element, null); |
- } else if (element.isFunction()) { |
+ } else if (element.isFunction() || element.isGenerativeConstructor()) { |
if (!selector.applies(element, compiler)) return types.dynamicType; |
ArgumentsTypes arguments = analyzeArguments(node.arguments); |
return handleStaticSend(node, selector, element, arguments); |