| 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 780abf8b9abd7fb3674d8bfaa2eb17de12b561bb..6f8c81367584a09ac669ef49f8e5eebfb414dc86 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.strictSubclassCount(candidate);
|
| + size = classWorld.strictSubclassesOf(candidate).length;
|
| assert(size <= classWorld.strictSubtypesOf(candidate).length);
|
| } else {
|
| kind = FlatTypeMask.SUBTYPE;
|
|
|