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

Unified Diff: tests/compiler/dart2js/least_upper_bound_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/compiler_helper.dart ('k') | tests/compiler/dart2js/link_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/least_upper_bound_test.dart
diff --git a/tests/compiler/dart2js/least_upper_bound_test.dart b/tests/compiler/dart2js/least_upper_bound_test.dart
index 3be823af9c8f1976e16343de9044f9ead092a9dc..c65b28008302772f6f8568aed3b03ffbaf1a07d7 100644
--- a/tests/compiler/dart2js/least_upper_bound_test.dart
+++ b/tests/compiler/dart2js/least_upper_bound_test.dart
@@ -11,7 +11,6 @@ import 'package:compiler/implementation/dart_types.dart';
import "package:compiler/implementation/elements/elements.dart"
show Element, ClassElement;
import 'package:compiler/implementation/util/util.dart'
- show Link;
void main() {
testInterface1();
@@ -725,12 +724,12 @@ void testTypeVariable() {
DartType B = env['B'];
DartType C = env['C'];
ClassElement I = env.getElement('I');
- DartType S = I.typeVariables.head;
- DartType T = I.typeVariables.tail.head;
- DartType U = I.typeVariables.tail.tail.head;
- DartType V = I.typeVariables.tail.tail.tail.head;
- DartType W = I.typeVariables.tail.tail.tail.tail.head;
- DartType X = I.typeVariables.tail.tail.tail.tail.tail.head;
+ DartType S = I.typeVariables[0];
+ DartType T = I.typeVariables[1];
+ DartType U = I.typeVariables[2];
+ DartType V = I.typeVariables[3];
+ DartType W = I.typeVariables[4];
+ DartType X = I.typeVariables[5];
checkLub(DartType a, DartType b, DartType expectedLub) {
DartType lub = env.computeLeastUpperBound(a, b);
« no previous file with comments | « tests/compiler/dart2js/compiler_helper.dart ('k') | tests/compiler/dart2js/link_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698