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

Unified Diff: tests/compiler/dart2js/lookup_member_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/link_test.dart ('k') | tests/compiler/dart2js/members_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/lookup_member_test.dart
diff --git a/tests/compiler/dart2js/lookup_member_test.dart b/tests/compiler/dart2js/lookup_member_test.dart
index 2b3ed47394b892531546b5efcd06dcbf0e5b1e80..7e0eeadee1b3a32b0cc9520883951184ea065d6b 100644
--- a/tests/compiler/dart2js/lookup_member_test.dart
+++ b/tests/compiler/dart2js/lookup_member_test.dart
@@ -44,7 +44,7 @@ void test() {
DartType String_ = env['String'];
ClassElement A = env.getElement('A');
- DartType T = A.typeVariables.head;
+ DartType T = A.typeVariables.first;
DartType A_T = A.thisType;
expect(A_T, 'foo', T);
@@ -52,7 +52,7 @@ void test() {
expect(A_int, 'foo', int_);
ClassElement B = env.getElement('B');
- DartType S = B.typeVariables.head;
+ DartType S = B.typeVariables.first;
DartType B_S = B.thisType;
expect(B_S, 'foo', instantiate(A, [S]));
expect(B_S, 'bar', S);
@@ -62,7 +62,7 @@ void test() {
expect(B_int, 'bar', int_);
ClassElement C = env.getElement('C');
- DartType U = C.typeVariables.head;
+ DartType U = C.typeVariables.first;
DartType C_U = C.thisType;
expect(C_U, 'foo', instantiate(A, [String_]));
expect(C_U, 'bar', String_);
« no previous file with comments | « tests/compiler/dart2js/link_test.dart ('k') | tests/compiler/dart2js/members_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698