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

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

Issue 12082045: Add optional and named parameters to FunctionType. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 11 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 | « sdk/lib/_internal/compiler/implementation/typechecker.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_checker_test.dart
diff --git a/tests/compiler/dart2js/type_checker_test.dart b/tests/compiler/dart2js/type_checker_test.dart
index 85dcbd8c52a45629a864ad3f5fcb0f8b7b603bb7..46c638976f4462c16f7e8cc45d4ffbe9bc562e34 100644
--- a/tests/compiler/dart2js/type_checker_test.dart
+++ b/tests/compiler/dart2js/type_checker_test.dart
@@ -360,8 +360,12 @@ testFunctionSubtyping() {
bool isSubtype(List<DartType> in1, DartType out1, List<DartType> in2,
DartType out2) {
return compiler.types.isSubtype(
- new FunctionType(out1, new Link<DartType>.fromList(in1), null),
- new FunctionType(out2, new Link<DartType>.fromList(in2), null));
+ new FunctionType(null, out1, new Link<DartType>.fromList(in1),
+ const Link<DartType>(),
+ const Link<SourceString>(), const Link<DartType>()),
+ new FunctionType(null, out2, new Link<DartType>.fromList(in2),
+ const Link<DartType>(),
+ const Link<SourceString>(), const Link<DartType>()));
}
Expect.isTrue(isSubtype([], intType, [], intType));
Expect.isTrue(isSubtype([], intType, [], objectType));
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/typechecker.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698