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

Unified Diff: tests/language/function_literals2_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_argument_test.dart ('k') | tests/language/function_literals_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/function_literals2_test.dart
===================================================================
--- tests/language/function_literals2_test.dart (revision 14804)
+++ tests/language/function_literals2_test.dart (working copy)
@@ -19,7 +19,7 @@
h(42); // make sure it is parsed as a function call
Expect.equals(20, h(10));
- var a = int _(x) {return x + 2;};
+ var a = (x) {return x + 2;};
Expect.equals(7, a(5));
Expect.equals(10, apply((k) { return k << 1;}, 5));
« no previous file with comments | « tests/language/function_argument_test.dart ('k') | tests/language/function_literals_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698