| 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 main() { | 5 main() { |
| 6 C o = const C(1); | 6 C o = const C(1); |
| 7 } | 7 } |
| 8 | 8 |
| 9 class Base { | 9 class Base { |
| 10 final String name; | 10 final String name; |
| 11 const Base(this.name); | 11 const Base(this.name); |
| 12 } | 12 } |
| 13 | 13 |
| 14 class C extends Base { | 14 class C extends Base { |
| 15 const C(var x) : super(); // call super constructor with wrong argument count. | 15 const C(var x) : super(); // call super constructor with wrong argument count. |
| 16 } | 16 } |
| OLD | NEW |