Index: tests/compiler/dart2js/resolver_test.dart |
diff --git a/tests/compiler/dart2js/resolver_test.dart b/tests/compiler/dart2js/resolver_test.dart |
index 3035fbf822bdb6d44c169b78fd0eb0482e7073d3..d1c90be431666d63de178c79d95ad69ec9acfe90 100644 |
--- a/tests/compiler/dart2js/resolver_test.dart |
+++ b/tests/compiler/dart2js/resolver_test.dart |
@@ -149,8 +149,9 @@ Future testTypeVariables() { |
visitor.visit(definition.type); |
ResolutionInterfaceType type = |
visitor.registry.mapping.getType(definition.type); |
+ NominalTypeAnnotation annotation = definition.type; |
Expect.equals( |
- definition.type.typeArguments.slowLength(), type.typeArguments.length); |
+ annotation.typeArguments.slowLength(), type.typeArguments.length); |
int index = 0; |
for (ResolutionDartType argument in type.typeArguments) { |
Expect.equals(true, index < expectedElements.length); |
@@ -700,7 +701,8 @@ Future testTopLevelFields() { |
Expect.equals(ElementKind.FIELD, element.kind); |
VariableDefinitions node = |
element.variables.parseNode(element, compiler.parsingContext); |
- Identifier typeName = node.type.typeName; |
+ NominalTypeAnnotation annotation = node.type; |
+ Identifier typeName = annotation.typeName; |
Expect.equals(typeName.source, 'int'); |
compiler.parseScript("var b, c;"); |