| Index: pkg/compiler/lib/src/types/map_type_mask.dart
|
| diff --git a/pkg/compiler/lib/src/types/map_type_mask.dart b/pkg/compiler/lib/src/types/map_type_mask.dart
|
| index fb502b171315bdfd3240d4ac70e7223d842ffb02..230db17d0f10de5ab805758a282fc2f5fd16195c 100644
|
| --- a/pkg/compiler/lib/src/types/map_type_mask.dart
|
| +++ b/pkg/compiler/lib/src/types/map_type_mask.dart
|
| @@ -79,8 +79,9 @@ class MapTypeMask extends ForwardingTypeMask {
|
| } else if (other.isDictionary) {
|
| // TODO(johnniwinther): Find another way to check this invariant that
|
| // doesn't need the compiler.
|
| - assert(
|
| - other.keyType == closedWorld.backend.compiler.commonMasks.stringType);
|
| + assert(other.keyType ==
|
| + new TypeMask.nonNullExact(
|
| + closedWorld.backendClasses.stringImplementation, closedWorld));
|
| TypeMask newKeyType = keyType.union(other.keyType, closedWorld);
|
| TypeMask newValueType =
|
| other.typeMap.values.fold(keyType, (p, n) => p.union(n, closedWorld));
|
|
|