| Index: tests/compiler/dart2js/related_types.dart
|
| diff --git a/tests/compiler/dart2js/related_types.dart b/tests/compiler/dart2js/related_types.dart
|
| index d4d26d2f4fcea04fb7f0f647b98a392c8577ab12..12b60c593567f71e1a98e6bc19f65bea6c5c6967 100644
|
| --- a/tests/compiler/dart2js/related_types.dart
|
| +++ b/tests/compiler/dart2js/related_types.dart
|
| @@ -78,6 +78,8 @@ class RelatedTypesChecker extends TraversalVisitor<DartType, dynamic> {
|
|
|
| ClassWorld get world => compiler.world;
|
|
|
| + CoreClasses get coreClasses => compiler.coreClasses;
|
| +
|
| CoreTypes get coreTypes => compiler.coreTypes;
|
|
|
| DiagnosticReporter get reporter => compiler.reporter;
|
| @@ -167,7 +169,7 @@ class RelatedTypesChecker extends TraversalVisitor<DartType, dynamic> {
|
|
|
| /// Returns the supertype of [receiver] that implements `Iterable`, if any.
|
| InterfaceType findIterableType(DartType receiver) {
|
| - return findClassType(receiver, compiler.iterableClass);
|
| + return findClassType(receiver, coreClasses.iterableClass);
|
| }
|
|
|
| /// Returns the element type of the supertype of [receiver] that implements
|
| @@ -179,7 +181,7 @@ class RelatedTypesChecker extends TraversalVisitor<DartType, dynamic> {
|
|
|
| /// Returns the supertype of [receiver] that implements `Map`, if any.
|
| InterfaceType findMapType(DartType receiver) {
|
| - return findClassType(receiver, compiler.mapClass);
|
| + return findClassType(receiver, coreClasses.mapClass);
|
| }
|
|
|
| /// Returns the key type of the supertype of [receiver] that implements
|
| @@ -198,7 +200,7 @@ class RelatedTypesChecker extends TraversalVisitor<DartType, dynamic> {
|
|
|
| /// Returns the supertype of [receiver] that implements `List`, if any.
|
| InterfaceType findListType(DartType receiver) {
|
| - return findClassType(receiver, compiler.listClass);
|
| + return findClassType(receiver, coreClasses.listClass);
|
| }
|
|
|
| /// Returns the element type of the supertype of [receiver] that implements
|
|
|