| 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 part of lazy_static6_test; | |
| 5 | 4 |
| 6 /* | 5 /* |
| 7 * A lot of comments to make sure that the lazy initialization code has a | 6 * A lot of comments to make sure that the lazy initialization code has a |
| 8 * position that does not fit into lazy_static6_test.dart file. | 7 * position that does not fit into lazy_static6_test.dart file. |
| 9 ****************************************************************************** | 8 ****************************************************************************** |
| 10 ****************************************************************************** | 9 ****************************************************************************** |
| 11 ****************************************************************************** | 10 ****************************************************************************** |
| 12 ****************************************************************************** | 11 ****************************************************************************** |
| 13 ****************************************************************************** | 12 ****************************************************************************** |
| 14 ****************************************************************************** | 13 ****************************************************************************** |
| 15 ****************************************************************************** | 14 ****************************************************************************** |
| 16 ****************************************************************************** | 15 ****************************************************************************** |
| 17 ****************************************************************************** | 16 ****************************************************************************** |
| 18 ****************************************************************************** | 17 ****************************************************************************** |
| 19 ****************************************************************************** | 18 ****************************************************************************** |
| 20 ****************************************************************************** | 19 ****************************************************************************** |
| 21 */ | 20 */ |
| 22 | 21 |
| 23 final x = (t) => (u) => t + u; | 22 final x = (t) => (u) => t + u; |
| 24 | 23 |
| 25 main() { | 24 main() { |
| 26 Expect.equals(499, x(498)(1)); | 25 Expect.equals(499, x(498)(1)); |
| 27 Expect.equals(42, x(39)(3)); | 26 Expect.equals(42, x(39)(3)); |
| 28 } | 27 } |
| OLD | NEW |