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

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: 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/lookup_member_test.dart
diff --git a/tests/compiler/dart2js/lookup_member_test.dart b/tests/compiler/dart2js/lookup_member_test.dart
index bc8bf851ad988fb88b9d99c5e61471ae293c9910..2adedc8856ed6215b1e5bb97c220cc3cf0fe4d91 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_);

Powered by Google App Engine
This is Rietveld 408576698