Index: tests/compiler/dart2js/trust_type_annotations2_test.dart |
diff --git a/tests/compiler/dart2js/trust_type_annotations2_test.dart b/tests/compiler/dart2js/trust_type_annotations2_test.dart |
index f6883805a7b1d069e5f69522d931fd3af45dd390..71ad9ca5f63a0edc85e9148f8339a8da0df249ef 100644 |
--- a/tests/compiler/dart2js/trust_type_annotations2_test.dart |
+++ b/tests/compiler/dart2js/trust_type_annotations2_test.dart |
@@ -29,7 +29,7 @@ main() { |
memorySourceFiles: MEMORY_SOURCE_FILES, |
options: ['--trust-type-annotations']); |
var compiler = result.compiler; |
- var element = compiler.mainFunction; |
+ var element = compiler.frontendStrategy.elementEnvironment.mainFunction; |
var code = compiler.backend.getGeneratedCode(element); |
Expect.isTrue(code.contains('+'), code); |
}); |