| OLD | NEW | 
|---|
| 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(); | 
| OLD | NEW | 
|---|