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 /** | 5 /** |
6 * Test various forms of function literals. | 6 * Test various forms of function literals. |
7 */ | 7 */ |
8 typedef int IntFunc(int); | 8 typedef int IntFunc(int); |
9 | 9 |
10 class FunctionLiteralsTest { | 10 class FunctionLiteralsTest { |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 checkIntFunction(42, func2, 42); | 151 checkIntFunction(42, func2, 42); |
152 checkIntFunction(42, func3, 42); | 152 checkIntFunction(42, func3, 42); |
153 checkIntFunction(42, func4, 42); | 153 checkIntFunction(42, func4, 42); |
154 } | 154 } |
155 } | 155 } |
156 | 156 |
157 | 157 |
158 main() { | 158 main() { |
159 FunctionLiteralsTest.testMain(); | 159 FunctionLiteralsTest.testMain(); |
160 } | 160 } |
OLD | NEW |