| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; | 
| 6 | 6 | 
| 7 int if1() { | 7 int if1() { | 
| 8   if (true) { | 8   if (true) { | 
| 9     return 499; | 9     return 499; | 
| 10   } | 10   } | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
| 32   if (true) { | 32   if (true) { | 
| 33     return 499; | 33     return 499; | 
| 34   } else { | 34   } else { | 
| 35     return 42; | 35     return 42; | 
| 36   } | 36   } | 
| 37 } | 37 } | 
| 38 | 38 | 
| 39 int if5() { | 39 int if5() { | 
| 40   if (true) { | 40   if (true) { | 
| 41     if (false) return 42; | 41     if (false) return 42; | 
| 42   } else { | 42   } else {} | 
| 43   } |  | 
| 44   return 499; | 43   return 499; | 
| 45 } | 44 } | 
| 46 | 45 | 
| 47 int if6() { | 46 int if6() { | 
| 48   if (true) { | 47   if (true) { | 
| 49     if (false) return 42; | 48     if (false) return 42; | 
| 50   } | 49   } | 
| 51   return 499; | 50   return 499; | 
| 52 } | 51 } | 
| 53 | 52 | 
| 54 void main() { | 53 void main() { | 
| 55   Expect.equals(499, if1()); | 54   Expect.equals(499, if1()); | 
| 56   Expect.equals(499, if2()); | 55   Expect.equals(499, if2()); | 
| 57   Expect.equals(499, if3()); | 56   Expect.equals(499, if3()); | 
| 58   Expect.equals(499, if4()); | 57   Expect.equals(499, if4()); | 
| 59   Expect.equals(499, if5()); | 58   Expect.equals(499, if5()); | 
| 60   Expect.equals(499, if6()); | 59   Expect.equals(499, if6()); | 
| 61 } | 60 } | 
| OLD | NEW | 
|---|