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 c1d51cc2f797f663aa49234eebffef938b083be1..cfbb8b32c7582345687dec504cd4c91349ba5cac 100644 |
--- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
+++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
@@ -404,7 +404,7 @@ class MemberTypeInformation extends ElementTypeInformation |
giveUp(inferrer); |
return safeType(inferrer); |
} |
- if (inferrer.isNativeElement(element)) { |
+ if (inferrer.isNativeElement(element) && !element.isConstructor) { |
Siggi Cherem (dart-lang)
2015/10/06 22:38:01
is this change still needed?
If so, maybe we need
Jacob
2015/10/13 01:19:23
removed the .isConstructor check here and added
||
|
// 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. |