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

Side by Side Diff: tests/language_strong/issue3806_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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Dart2js produced a statement in an expression context for this test. 5 // Dart2js produced a statement in an expression context for this test.
6 6
7 class A { 7 class A {
8 var foo = "foo"; 8 var foo = "foo";
9 bar(x) { 9 bar(x) {
10 if (foo == 3) return; 10 if (foo == 3) return;
11 var t = x; 11 var t = x;
12 if (x == 0 ) t = foo; 12 if (x == 0) t = foo;
13 foo = t; 13 foo = t;
14 } 14 }
15
15 toto(x) => x; 16 toto(x) => x;
16 titi() { 17 titi() {
17 foo = 0; 18 foo = 0;
18 for (int i = 0; i < 3; i++) bar(i); 19 for (int i = 0; i < 3; i++) bar(i);
19 } 20 }
20 } 21 }
21 22
22 main() => new A().titi(); 23 main() => new A().titi();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698