Index: pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
diff --git a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
index 900bd4796113c2e5f59a81b87b6b6ee86f0134fe..1d10bbe557843de4054f2fdb7dde38bf4342f774 100644 |
--- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
+++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
@@ -400,7 +400,7 @@ class MemberTypeInformation extends ElementTypeInformation |
giveUp(inferrer); |
return safeType(inferrer); |
} |
- if (inferrer.isNativeElement(element)) { |
+ if (inferrer.isNativeElement(element) && !element.isConstructor) { |
// Use the type annotation as the type for native elements. We |
// also give up on inferring to make sure this element never |
// goes in the work queue. |