Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart |
| diff --git a/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart b/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart |
| index a549a6e6811e107d89cec7f6bc80c33839756d73..3efcad2fe49593ed4c456654e666d87f59604370 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart |
| @@ -295,6 +295,9 @@ class SimpleTypesInferrer extends TypesInferrer { |
| } |
| TypeMask getTypeOfElement(Element element) { |
| if (compiler.disableTypeInference) return compiler.typesTask.dynamicType; |
| + if (element.isField() && compiler.backend.isNeededForReflection(element)) { |
|
ngeoffray
2013/09/01 12:04:34
After commit comments: this does not belong here,
|
| + return compiler.typesTask.dynamicType; |
| + } |
| return internal.getTypeOfElement(element.implementation); |
| } |
| TypeMask getTypeOfNode(Element owner, Node node) { |