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 foo(a, [b]) {} | 5 foo(a, [b]) { |
| 6 } |
6 | 7 |
7 bar(a, {b}) {} | 8 bar(a, {b}) { |
| 9 } |
8 | 10 |
9 class A { | 11 class A { |
10 A(); | 12 A(); |
11 A.test(a, [b]); | 13 A.test(a, [b]); |
12 } | 14 } |
13 | 15 |
14 class B { | 16 class B { |
15 B() | 17 B() |
16 : super.test(b: 1) // //# 01: runtime error | 18 : super.test(b: 1) // //# 01: runtime error |
17 ; | 19 ; |
(...skipping 18 matching lines...) Expand all Loading... |
36 | 38 |
37 main() { | 39 main() { |
38 new A.test(b: 1); // //# 00: runtime error | 40 new A.test(b: 1); // //# 00: runtime error |
39 new B(); | 41 new B(); |
40 new C(); | 42 new C(); |
41 new D.test(b: 1); // //# 03: runtime error | 43 new D.test(b: 1); // //# 03: runtime error |
42 new E(); | 44 new E(); |
43 foo(b: 1); // //# 06: runtime error | 45 foo(b: 1); // //# 06: runtime error |
44 bar(b: 1); // //# 07: runtime error | 46 bar(b: 1); // //# 07: runtime error |
45 } | 47 } |
OLD | NEW |