Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 main() { | |
| 6 var a = 10; | |
| 7 var b = 11; | |
| 8 | |
| 9 for (var i = 0; i < 1; i++) { | |
| 10 print('--------'); | |
| 11 print('a $a'); | |
| 12 print('b $b'); | |
| 13 var t = 1; | |
| 14 if (i < 20) { | |
| 15 t = 2; | |
| 16 } | |
| 17 | |
| 18 b = a; | |
| 19 a = t; | |
| 20 } | |
| 21 Expect.equals(2, a); | |
| 22 Expect.equals(10, b); | |
| 23 } | |
| OLD | NEW |