OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 main( | 5 main( |
6 | 6 |
7 a // /// 01: ok | 7 a // //# 01: ok |
8 a, b // /// 02: ok | 8 a, b // //# 02: ok |
9 a, b, c // /// 03: static type warning, runtime error | 9 a, b, c // //# 03: static type warning, runtime error |
10 a, b, {c} /// 04: ok | 10 a, b, {c} //# 04: ok |
11 a, b, [c] /// 05: ok | 11 a, b, [c] //# 05: ok |
12 | 12 |
13 [a] // /// 20: ok | 13 [a] // //# 20: ok |
14 a, [b] // /// 21: ok | 14 a, [b] // //# 21: ok |
15 [a, b] // /// 22: ok | 15 [a, b] // //# 22: ok |
16 | 16 |
17 {a} // /// 41: ok | 17 {a} // //# 41: ok |
18 a, {b} // /// 42: ok | 18 a, {b} // //# 42: ok |
19 {a, b} // /// 43: ok | 19 {a, b} // //# 43: ok |
20 [a, b, c] /// 44: ok | 20 [a, b, c] //# 44: ok |
21 {a, b, c} /// 45: ok | 21 {a, b, c} //# 45: ok |
22 | 22 |
23 ) { | 23 ) { |
24 } | 24 } |
OLD | NEW |