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

Unified Diff: tests/compiler/dart2js/members_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: Rebase and some algorithmic bugs fixed. Created 6 years, 9 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/members_test.dart
diff --git a/tests/compiler/dart2js/members_test.dart b/tests/compiler/dart2js/members_test.dart
index 558be71fd3523bc1b0afd2538c114dd66ad6419c..1a185c9f2893f61b800541b00d7162630075dbb8 100644
--- a/tests/compiler/dart2js/members_test.dart
+++ b/tests/compiler/dart2js/members_test.dart
@@ -253,7 +253,7 @@ void testClassMembers() {
ClassElement B = env.getElement('B');
InterfaceType B_this = B.thisType;
- TypeVariableType B_T = B_this.typeArguments.head;
+ TypeVariableType B_T = B_this.typeArguments.first;
checkMemberCount(B_this, 4 /*inherited*/ + 4 /*non-static declared*/,
interfaceMembers: true);
checkMemberCount(B_this, 4 /*inherited*/ + 5 /*declared*/,
@@ -278,7 +278,7 @@ void testClassMembers() {
ClassElement C = env.getElement('C');
InterfaceType C_this = C.thisType;
- TypeVariableType C_S = C_this.typeArguments.head;
+ TypeVariableType C_S = C_this.typeArguments.first;
checkMemberCount(C_this, 8 /*inherited*/, interfaceMembers: true);
checkMemberCount(C_this, 8 /*inherited*/, interfaceMembers: false);
InterfaceType B_S = instantiate(B, [C_S]);
@@ -626,8 +626,8 @@ void testMixinMembers() {
ClassElement B = env.getElement('B');
ClassElement C = env.getElement('C');
InterfaceType C_this = C.thisType;
- TypeVariableType C_U = C_this.typeArguments.head;
- TypeVariableType C_V = C_this.typeArguments.tail.head;
+ TypeVariableType C_U = C_this.typeArguments[0];
+ TypeVariableType C_V = C_this.typeArguments[1];
InterfaceType A_U = instantiate(A, [C_U]);
InterfaceType B_V = instantiate(B, [C_V]);

Powered by Google App Engine
This is Rietveld 408576698