Index: tests/compiler/dart2js/related_types.dart |
diff --git a/tests/compiler/dart2js/related_types.dart b/tests/compiler/dart2js/related_types.dart |
index 12b60c593567f71e1a98e6bc19f65bea6c5c6967..d3f04e3c90a42279f96219cf1d88215772b8cac9 100644 |
--- a/tests/compiler/dart2js/related_types.dart |
+++ b/tests/compiler/dart2js/related_types.dart |
@@ -59,9 +59,9 @@ void checkMemberElement(Compiler compiler, MemberElement member) { |
if (!compiler.resolution.hasBeenResolved(member)) return; |
ResolvedAst resolvedAst = member.resolvedAst; |
- RelatedTypesChecker relatedTypesChecker = |
- new RelatedTypesChecker(compiler, resolvedAst); |
- if (resolvedAst.node != null) { |
+ if (resolvedAst.kind == ResolvedAstKind.PARSED) { |
+ RelatedTypesChecker relatedTypesChecker = |
+ new RelatedTypesChecker(compiler, resolvedAst); |
compiler.reporter.withCurrentElement(member.implementation, () { |
relatedTypesChecker.apply(resolvedAst.node); |
}); |