| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 class C { | 5 class C { |
| 6 foo(a | 6 foo(a |
| 7 : 1 // /// 01: compile-time error | 7 : 1 // //# 01: compile-time error |
| 8 = 1 // /// 02: compile-time error | 8 = 1 // //# 02: compile-time error |
| 9 ) { print(a); } | 9 ) { print(a); } |
| 10 | 10 |
| 11 static bar(a | 11 static bar(a |
| 12 : 1 // /// 03: compile-time error | 12 : 1 // //# 03: compile-time error |
| 13 = 1 // /// 04: compile-time error | 13 = 1 // //# 04: compile-time error |
| 14 ) { print(a); } | 14 ) { print(a); } |
| 15 } | 15 } |
| 16 | 16 |
| 17 baz(a | 17 baz(a |
| 18 : 1 // /// 05: compile-time error | 18 : 1 // //# 05: compile-time error |
| 19 = 1 // /// 06: compile-time error | 19 = 1 // //# 06: compile-time error |
| 20 ) { print(a); } | 20 ) { print(a); } |
| 21 | 21 |
| 22 main() { | 22 main() { |
| 23 foo(a | 23 foo(a |
| 24 : 1 // /// 07: compile-time error | 24 : 1 // //# 07: compile-time error |
| 25 = 1 // /// 08: compile-time error | 25 = 1 // //# 08: compile-time error |
| 26 ) { print(a); } | 26 ) { print(a); } |
| 27 | 27 |
| 28 foo(1); | 28 foo(1); |
| 29 | 29 |
| 30 new C().foo(2); | 30 new C().foo(2); |
| 31 | 31 |
| 32 C.bar(3); | 32 C.bar(3); |
| 33 | 33 |
| 34 baz(4); | 34 baz(4); |
| 35 } | 35 } |
| OLD | NEW |