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 // Test syntax errors related to unterminated braces. | 5 // Test syntax errors related to unterminated braces. |
6 | 6 |
7 class A { | 7 class A { |
8 m() { | 8 m() { |
9 /* //# 01: compile-time error | 9 /* //# 01: compile-time error |
10 } | 10 } |
11 // */ | 11 // */ |
12 | 12 |
13 /* //# 02: compile-time error | 13 /* //# 02: compile-time error |
14 } | 14 } |
15 // */ | 15 // */ |
16 | 16 |
17 class B { | 17 class B {} |
18 } | |
19 | 18 |
20 main() { | 19 main() { |
21 new A(); | 20 new A(); |
22 new B(); | 21 new B(); |
23 } | 22 } |
OLD | NEW |