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

Unified Diff: tests/language/function_type_alias_test.dart

Issue 11377102: Remove named function literals from library and tests (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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/language/function_type_alias6_test.dart ('k') | tests/language/generic_syntax_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/function_type_alias_test.dart
===================================================================
--- tests/language/function_type_alias_test.dart (revision 14804)
+++ tests/language/function_type_alias_test.dart (working copy)
@@ -77,7 +77,7 @@
Expect.isTrue(compareObj is !CompareString);
Expect.equals(-1, test(compareObj, "abcdef", "xyz"));
- CompareInt minus = int _(int a, int b) { return a - b; };
+ CompareInt minus = (int a, int b) { return a - b; };
Expect.isTrue(minus is Fun);
Expect.isTrue(compareStrLen is IntFun);
Expect.isTrue(compareStrLen is !BoolFun);
@@ -96,8 +96,8 @@
Expect.equals(0, bar());
- Function boundsTrue = void _(int arg) { };
- Function boundsFalse = void _(String arg) { };
+ Function boundsTrue = (int arg) { };
+ Function boundsFalse = (String arg) { };
Expect.isTrue(boundsTrue is BoundsCheck<num>);
Expect.isFalse(boundsFalse is BoundsCheck<num>);
}
« no previous file with comments | « tests/language/function_type_alias6_test.dart ('k') | tests/language/generic_syntax_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698