| 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 import "package:expect/expect.dart"; | 
|  | 6 | 
| 5 final x = foo(); | 7 final x = foo(); | 
| 6 final y = y2(y3); | 8 final y = y2(y3); | 
| 7 final y2 = incrementCreator(); | 9 final y2 = incrementCreator(); | 
| 8 final y3 = fib(5); | 10 final y3 = fib(5); | 
| 9 | 11 | 
| 10 foo() => 499; | 12 foo() => 499; | 
| 11 | 13 | 
| 12 incrementCreator() => (x) => x + 1; | 14 incrementCreator() => (x) => x + 1; | 
| 13 fib(x) { | 15 fib(x) { | 
| 14   if (x < 2) return x; | 16   if (x < 2) return x; | 
| (...skipping 24 matching lines...) Expand all  Loading... | 
| 39 main() { | 41 main() { | 
| 40   Expect.equals(499, x); | 42   Expect.equals(499, x); | 
| 41   Expect.equals(6, y); | 43   Expect.equals(6, y); | 
| 42   Expect.equals(666, A.a); | 44   Expect.equals(666, A.a); | 
| 43   Expect.equals(119, A.b); | 45   Expect.equals(119, A.b); | 
| 44   Expect.equals(0, t); | 46   Expect.equals(0, t); | 
| 45   t2 = 499; | 47   t2 = 499; | 
| 46   Expect.equals(499, t2); | 48   Expect.equals(499, t2); | 
| 47   Expect.equals(1, count); | 49   Expect.equals(1, count); | 
| 48 } | 50 } | 
| OLD | NEW | 
|---|