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

Unified Diff: tests/compiler/dart2js_extra/closure_capture3_test.dart

Issue 437193002: Remove function names on function expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove TODO Created 6 years, 4 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_extra/closure_capture3_test.dart
diff --git a/tests/compiler/dart2js_extra/closure_capture3_test.dart b/tests/compiler/dart2js_extra/closure_capture3_test.dart
index 6044a2ab5798d136487b073254c6c8d707c61d5b..5a54b13eb93d3ef2faa7ff2502fc14180f8dc343 100644
--- a/tests/compiler/dart2js_extra/closure_capture3_test.dart
+++ b/tests/compiler/dart2js_extra/closure_capture3_test.dart
@@ -9,13 +9,13 @@ class Closure {
Closure(val) : this.x = val;
foo() {
- return fun() {
+ return () {
return x;
};
}
bar() {
- return fun() {
+ return () {
return toto();
};
}
@@ -25,8 +25,8 @@ class Closure {
}
nestedClosure() {
- var f = g() { return x; };
- return fun() { return f() + 2; };
+ var f = () { return x; };
+ return () { return f() + 2; };
}
}
« no previous file with comments | « tests/compiler/dart2js_extra/closure_capture2_test.dart ('k') | tests/compiler/dart2js_extra/closure_capture4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698