| Index: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (revision 23578)
|
| +++ sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (working copy)
|
| @@ -152,15 +152,19 @@
|
| TypeMask get typeType => internal.typeType;
|
|
|
| TypeMask getReturnTypeOfElement(Element element) {
|
| + if (compiler.disableTypeInference) return dynamicType;
|
| return internal.getReturnTypeOfElement(element);
|
| }
|
| TypeMask getTypeOfElement(Element element) {
|
| + if (compiler.disableTypeInference) return dynamicType;
|
| return internal.getTypeOfElement(element);
|
| }
|
| TypeMask getTypeOfNode(Element owner, Node node) {
|
| + if (compiler.disableTypeInference) return dynamicType;
|
| return internal.getTypeOfNode(owner, node);
|
| }
|
| TypeMask getTypeOfSelector(Selector selector) {
|
| + if (compiler.disableTypeInference) return dynamicType;
|
| return internal.getTypeOfSelector(selector);
|
| }
|
|
|
| @@ -817,7 +821,7 @@
|
| return isTypeValuable(result);
|
| });
|
| if (result == null) {
|
| - result = dynamicType;
|
| + result = new TypeMask.nonNullEmpty();
|
| }
|
| return result;
|
| }
|
|
|