Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart |
| =================================================================== |
| --- sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (revision 24244) |
| +++ sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (working copy) |
| @@ -805,6 +805,10 @@ |
| ContainerTypeMask mask = selector.mask; |
| TypeMask elementType = mask.elementType; |
| return elementType == null ? dynamicType : elementType; |
| + } else if (element.isGetter()) { |
|
kasperl
2013/06/21 05:58:00
What happens if element is a field? Can we ever ge
|
| + // Closure call. |
| + assert(selector.isCall()); |
| + return dynamicType; |
| } else { |
| return returnTypeOfElement(element); |
| } |