Index: pkg/compiler/lib/src/types/union_type_mask.dart |
diff --git a/pkg/compiler/lib/src/types/union_type_mask.dart b/pkg/compiler/lib/src/types/union_type_mask.dart |
index 61663499171b5bfdd9a94c4b7541b9a857f1bfd4..9cd5bcb023255f54db93311b7f6345d5db80c9ad 100644 |
--- a/pkg/compiler/lib/src/types/union_type_mask.dart |
+++ b/pkg/compiler/lib/src/types/union_type_mask.dart |
@@ -43,7 +43,7 @@ class UnionTypeMask implements TypeMask { |
if (mask.isUnion) { |
UnionTypeMask union = mask; |
unionOfHelper(union.disjointMasks, disjoint, classWorld); |
- } else if (mask.isEmpty && !mask.isNullable) { |
+ } else if (mask.isEmpty) { |
continue; |
} else { |
FlatTypeMask flatMask = mask; |
@@ -192,7 +192,9 @@ class UnionTypeMask implements TypeMask { |
return new UnionTypeMask._internal(newIterable); |
} |
+ bool get isEmptyOrNull => false; |
bool get isEmpty => false; |
+ bool get isNull => false; |
bool get isNullable => disjointMasks.any((e) => e.isNullable); |
bool get isExact => false; |
bool get isUnion => true; |