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

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

Issue 1146943002: Change Link to List in FunctionSignature. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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/type_equals_test.dart
diff --git a/tests/compiler/dart2js/type_equals_test.dart b/tests/compiler/dart2js/type_equals_test.dart
index 2d01b361d8dc885056d77c740464ba720995043c..16e1066e89c813badc23bbcfb32a0248ca6bdcc5 100644
--- a/tests/compiler/dart2js/type_equals_test.dart
+++ b/tests/compiler/dart2js/type_equals_test.dart
@@ -34,14 +34,14 @@ bool test(compiler, String name1, String name2, {bool expect}) {
type1 = signature1.type.returnType;
} else {
// Otherwise use the first argument type.
- type1 = signature1.requiredParameters.head.computeType(compiler);
+ type1 = signature1.requiredParameters.first.type;
}
if (signature2.requiredParameterCount == 0) {
// If parameters is empty, use return type.
type2 = signature2.type.returnType;
} else {
// Otherwise use the first argument type.
- type2 = signature2.requiredParameters.head.computeType(compiler);
+ type2 = signature2.requiredParameters.first.type;
}
if (expect) {
Expect.equals(type1, type2, "$type1 != $type2");
« no previous file with comments | « tests/compiler/dart2js/concrete_type_inference_test.dart ('k') | tests/compiler/dart2js/type_substitution_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698