| Index: pkg/compiler/lib/src/world.dart
|
| diff --git a/pkg/compiler/lib/src/world.dart b/pkg/compiler/lib/src/world.dart
|
| index 430b8f03324bb49f4d1e34ce909cff43d62e7494..25d9e8199cf586ffec1fe3c0b75bc3231dd65cb1 100644
|
| --- a/pkg/compiler/lib/src/world.dart
|
| +++ b/pkg/compiler/lib/src/world.dart
|
| @@ -19,6 +19,7 @@ import 'elements/elements.dart'
|
| MixinApplicationElement,
|
| TypedefElement;
|
| import 'elements/resolution_types.dart';
|
| +import 'elements/types.dart';
|
| import 'js_backend/backend.dart' show JavaScriptBackend;
|
| import 'js_backend/interceptor_data.dart' show InterceptorData;
|
| import 'js_backend/native_data.dart' show NativeData;
|
| @@ -977,14 +978,14 @@ class ClosedWorldImpl extends ClosedWorldBase {
|
|
|
| List<ClassElement> commonSupertypes = <ClassElement>[];
|
| OUTER:
|
| - for (Link<ResolutionDartType> link = typeSet[depth];
|
| + for (Link<InterfaceType> link = typeSet[depth];
|
| link.head.element != commonElements.objectClass;
|
| link = link.tail) {
|
| ClassElement cls = link.head.element;
|
| for (Link<OrderedTypeSet> link = otherTypeSets;
|
| !link.isEmpty;
|
| link = link.tail) {
|
| - if (link.head.asInstanceOf(cls) == null) {
|
| + if (link.head.asInstanceOf(cls, cls.hierarchyDepth) == null) {
|
| continue OUTER;
|
| }
|
| }
|
|
|