Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: tests/compiler/dart2js/resolver_test.dart

Issue 2710973002: Revert "Add support for the new function-type syntax." (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/resolver_test.dart
diff --git a/tests/compiler/dart2js/resolver_test.dart b/tests/compiler/dart2js/resolver_test.dart
index d1c90be431666d63de178c79d95ad69ec9acfe90..3035fbf822bdb6d44c169b78fd0eb0482e7073d3 100644
--- a/tests/compiler/dart2js/resolver_test.dart
+++ b/tests/compiler/dart2js/resolver_test.dart
@@ -149,9 +149,8 @@ Future testTypeVariables() {
visitor.visit(definition.type);
ResolutionInterfaceType type =
visitor.registry.mapping.getType(definition.type);
- NominalTypeAnnotation annotation = definition.type;
Expect.equals(
- annotation.typeArguments.slowLength(), type.typeArguments.length);
+ definition.type.typeArguments.slowLength(), type.typeArguments.length);
int index = 0;
for (ResolutionDartType argument in type.typeArguments) {
Expect.equals(true, index < expectedElements.length);
@@ -701,8 +700,7 @@ Future testTopLevelFields() {
Expect.equals(ElementKind.FIELD, element.kind);
VariableDefinitions node =
element.variables.parseNode(element, compiler.parsingContext);
- NominalTypeAnnotation annotation = node.type;
- Identifier typeName = annotation.typeName;
+ Identifier typeName = node.type.typeName;
Expect.equals(typeName.source, 'int');
compiler.parseScript("var b, c;");
« no previous file with comments | « pkg/front_end/test/fasta/function_type_recovery_test.dart ('k') | tests/language/function_type/test_generator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698