Index: pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart |
diff --git a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart |
index a65d3e37454b10d0f29a8960e08d8301d9706fca..c2956ff5d08d7fe2550c794949008cd940f13ab9 100644 |
--- a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart |
+++ b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart |
@@ -290,10 +290,7 @@ abstract class InferrerEngine<T, V extends TypeSystem> |
} |
bool isNativeElement(Element element) { |
- if (compiler.backend.isNative(element)) return true; |
- return element.isClassMember && |
- compiler.backend.isNative(element.enclosingClass) && |
- element.isField; |
+ return compiler.backend.isNative(element); |
} |
void analyze(ResolvedAst resolvedAst, ArgumentsTypes arguments); |