| 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 8856df0dd5747453409cafedcce17e51f595667b..3a38bda26a2d4e5600382c9f80fb593b145e4a20 100644
|
| --- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
|
| +++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
|
| @@ -1753,13 +1753,14 @@ TypeMask _narrowType(
|
| {bool isNullable: true}) {
|
| if (annotation.treatAsDynamic) return type;
|
| if (annotation.isObject) return type;
|
| - if (annotation.isVoid) return type;
|
| TypeMask otherType;
|
| if (annotation.isTypedef || annotation.isFunctionType) {
|
| otherType = closedWorld.commonMasks.functionType;
|
| } else if (annotation.isTypeVariable) {
|
| // TODO(ngeoffray): Narrow to bound.
|
| return type;
|
| + } else if (annotation.isVoid) {
|
| + otherType = closedWorld.commonMasks.nullType;
|
| } else {
|
| ResolutionInterfaceType interfaceType = annotation;
|
| otherType = new TypeMask.nonNullSubtype(interfaceType.element, closedWorld);
|
|
|