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

Unified Diff: tests/language/generics_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/generic_syntax_test.dart ('k') | tests/language/list_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/generics_test.dart
===================================================================
--- tests/language/generics_test.dart (revision 14804)
+++ tests/language/generics_test.dart (working copy)
@@ -20,38 +20,12 @@
Map<int, int> e;
GenericsTest<int, GenericsTest<int, int>> f;
- takesVoidMethod(void _(int a) {
- Expect.equals(2, a);
- });
-
- takesGenericMapMethod(Map<int, int> _(int a) {
- Expect.equals(2, a);
- return null;
- });
-
- takesIntMethod(int _(int a) {
- Expect.equals(2, a);
- return 98;
- });
-
e = new Map();
takesMapMethod(e);
Expect.equals(2, e[0]);
Map h = new Map<int, int>();
}
- static void takesVoidMethod(void f(int a)) {
- f(2);
- }
-
- static void takesIntMethod(int f(int a)) {
- Expect.equals(98, f(2));
- }
-
- static void takesGenericMapMethod(Map<int, int> f(int a)) {
- f(2);
- }
-
static void takesMapMethod(Map<int, int> m) {
m[0] = 2;
}
« no previous file with comments | « tests/language/generic_syntax_test.dart ('k') | tests/language/list_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698