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

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

Issue 177963002: Use List instead of Link in the type system. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 6 years, 6 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
« no previous file with comments | « tests/compiler/dart2js/subtype_test.dart ('k') | tests/compiler/dart2js/type_representation_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_order_test.dart
diff --git a/tests/compiler/dart2js/type_order_test.dart b/tests/compiler/dart2js/type_order_test.dart
index 9eacf787ba6f05012a6e3902c92ce90f601e10fb..d3dd7172eebbf665d62ee139a35aaa885c789832 100644
--- a/tests/compiler/dart2js/type_order_test.dart
+++ b/tests/compiler/dart2js/type_order_test.dart
@@ -39,15 +39,15 @@ void main() {
InterfaceType A_this = add(A.thisType);
InterfaceType A_raw = add(A.rawType);
- TypeVariableType AT = add(A_this.typeArguments.head);
- TypeVariableType AS = add(A_this.typeArguments.tail.head);
+ TypeVariableType AT = add(A_this.typeArguments[0]);
+ TypeVariableType AS = add(A_this.typeArguments[1]);
InterfaceType A_X_Y = add(instantiate(A, [X, Y]));
InterfaceType A_Y_X = add(instantiate(A, [Y, X]));
TypedefType B_this = add(B.computeType(env.compiler));
TypedefType B_raw = add(B.rawType);
- TypeVariableType BT = add(B_this.typeArguments.head);
- TypeVariableType BS = add(B_this.typeArguments.tail.head);
+ TypeVariableType BT = add(B_this.typeArguments[0]);
+ TypeVariableType BS = add(B_this.typeArguments[1]);
FunctionType B_this_alias = add(B.alias);
TypedefType B_X_Y = add(instantiate(B, [X, Y]));
FunctionType B_X_Y_alias = add(B_X_Y.unalias(env.compiler));
@@ -56,8 +56,8 @@ void main() {
InterfaceType C_this = add(C.thisType);
InterfaceType C_raw = add(C.rawType);
- TypeVariableType CT = add(C_this.typeArguments.head);
- TypeVariableType CS = add(C_this.typeArguments.tail.head);
+ TypeVariableType CT = add(C_this.typeArguments[0]);
+ TypeVariableType CS = add(C_this.typeArguments[1]);
Expect.listEquals(
[void_, dynamic_,
« no previous file with comments | « tests/compiler/dart2js/subtype_test.dart ('k') | tests/compiler/dart2js/type_representation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698