Index: tests/compiler/dart2js/related_types.dart |
diff --git a/tests/compiler/dart2js/related_types.dart b/tests/compiler/dart2js/related_types.dart |
index 580dd149e141cba72ae8d3f261f416d6c99c2483..d8f0e55b36ca7553b5a22292e6eae4b9f1f5c8a9 100644 |
--- a/tests/compiler/dart2js/related_types.dart |
+++ b/tests/compiler/dart2js/related_types.dart |
@@ -36,7 +36,8 @@ main(List<String> arguments) async { |
/// Check all loaded libraries in [compiler] for unrelated types. |
void checkRelatedTypes(Compiler compiler) { |
- compiler.closeResolution(); |
+ compiler.closeResolution( |
+ compiler.frontendStrategy.elementEnvironment.mainFunction); |
for (LibraryElement library in compiler.libraryLoader.libraries) { |
checkLibraryElement(compiler, library); |
} |