| 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 24a019144a87e3d76477db32517f90d80fc4f17a..a30cdb2a97fbf7d3ef099e3f1bc6fcdb54359810 100644
|
| --- a/pkg/compiler/lib/src/types/union_type_mask.dart
|
| +++ b/pkg/compiler/lib/src/types/union_type_mask.dart
|
| @@ -118,7 +118,7 @@ class UnionTypeMask implements TypeMask {
|
| // TODO(sigmund, johnniwinther): computing length here (and below) is
|
| // expensive. If we can't prevent `flatten` from being called a lot, it
|
| // might be worth caching results.
|
| - size = classWorld.strictSubclassesOf(candidate).length;
|
| + size = classWorld.strictSubclassCount(candidate);
|
| assert(size <= classWorld.strictSubtypesOf(candidate).length);
|
| } else {
|
| kind = FlatTypeMask.SUBTYPE;
|
|
|