| 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"; | |
| 6 | |
| 7 // Tests function statement and expression syntax. | 5 // Tests function statement and expression syntax. |
| 8 | 6 |
| 9 class FunctionSyntaxTest { | 7 class FunctionSyntaxTest { |
| 10 | 8 |
| 11 static void testMain | 9 static void testMain |
| 12 /* /// 00: compile-time error | 10 /* /// 00: compile-time error |
| 13 () | 11 () |
| 14 */ /// 00: continued | 12 */ /// 00: continued |
| 15 { | 13 { |
| 16 testNestedFunctions(); | 14 testNestedFunctions(); |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 | 540 |
| 543 } | 541 } |
| 544 | 542 |
| 545 main | 543 main |
| 546 /* /// 74: compile-time error | 544 /* /// 74: compile-time error |
| 547 () | 545 () |
| 548 */ /// 74: continued | 546 */ /// 74: continued |
| 549 { | 547 { |
| 550 FunctionSyntaxTest.testMain(); | 548 FunctionSyntaxTest.testMain(); |
| 551 } | 549 } |
| OLD | NEW |