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

Unified Diff: tests/language_strong/closure_variable_shadow_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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/language_strong/closure_variable_shadow_test.dart
diff --git a/tests/language_strong/closure_variable_shadow_test.dart b/tests/language_strong/closure_variable_shadow_test.dart
index 8f774b403491f7a3ff2c1cb67492ca646d269f0d..4b1edb477b4e4fb26f72850ce43bbcb30362fbfe 100644
--- a/tests/language_strong/closure_variable_shadow_test.dart
+++ b/tests/language_strong/closure_variable_shadow_test.dart
@@ -4,17 +4,18 @@
import "package:expect/expect.dart";
-// The intermediate variable 'y' must either be preserved
+// The intermediate variable 'y' must either be preserved
// or parameters must be renamed.
foo(x) {
- var y = x;
- bar(x) {
- return y - x;
- }
- return bar;
+ var y = x;
+ bar(x) {
+ return y - x;
+ }
+
+ return bar;
}
main() {
- Expect.equals(-10, foo(10)(20));
+ Expect.equals(-10, foo(10)(20));
}

Powered by Google App Engine
This is Rietveld 408576698