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 foo(x | 5 foo(x |
6 , static int y // //# 01: compile-time error | 6 , static int y // //# 01: compile-time error |
7 , final static y // //# 02: compile-time error | 7 , static final y // //# 02: compile-time error |
8 , {static y} // //# 03: compile-time error | 8 , {static y} // //# 03: compile-time error |
9 , [static y] // //# 04: compile-time error | 9 , [static y] // //# 04: compile-time error |
10 ) {} | 10 ) {} |
11 | 11 |
12 class C { | 12 class C { |
13 bar(x | 13 bar(x |
14 , static int y // //# 05: compile-time error | 14 , static int y // //# 05: compile-time error |
15 , final static y // //# 06: compile-time error | 15 , static final y // //# 06: compile-time error |
16 , {static y} // //# 07: compile-time error | 16 , {static y} // //# 07: compile-time error |
17 , [static y] // //# 08: compile-time error | 17 , [static y] // //# 08: compile-time error |
18 ) {} | 18 ) {} |
19 | 19 |
20 static baz(x | 20 static baz(x |
21 , static int y // //# 09: compile-time error | 21 , static int y // //# 09: compile-time error |
22 , final static y // //# 10: compile-time error | 22 , static final y // //# 10: compile-time error |
23 , {static y} // //# 11: compile-time error | 23 , {static y} // //# 11: compile-time error |
24 , [static y] // //# 12: compile-time error | 24 , [static y] // //# 12: compile-time error |
25 ) {} | 25 ) {} |
26 } | 26 } |
27 | 27 |
28 main() { | 28 main() { |
29 foo(1 | 29 foo(1 |
30 , 1 // //# 01: continued | 30 , 1 // //# 01: continued |
31 , 1 // //# 02: continued | 31 , 1 // //# 02: continued |
32 , y: 1 // //# 03: continued | 32 , y: 1 // //# 03: continued |
33 , 1 // //# 04: continued | 33 , 1 // //# 04: continued |
34 ); | 34 ); |
35 new C().bar(1 | 35 new C().bar(1 |
36 , 1 // //# 05: continued | 36 , 1 // //# 05: continued |
37 , 1 // //# 06: continued | 37 , 1 // //# 06: continued |
38 , y: 1 // //# 07: continued | 38 , y: 1 // //# 07: continued |
39 , 1 // //# 08: continued | 39 , 1 // //# 08: continued |
40 ); | 40 ); |
41 C.baz(1 | 41 C.baz(1 |
42 , 1 // //# 09: continued | 42 , 1 // //# 09: continued |
43 , 1 // //# 10: continued | 43 , 1 // //# 10: continued |
44 , y: 1 // //# 11: continued | 44 , y: 1 // //# 11: continued |
45 , 1 // //# 12: continued | 45 , 1 // //# 12: continued |
46 ); | 46 ); |
47 } | 47 } |
OLD | NEW |