| // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| |
| /// @assertion Iff no constructor is specified for a class C, it implicitly has |
| /// a default constructor C() : super() {}, unless C is class Object. |
| /// @description Checks that 'default' constructor is not generated if the class |
| /// declares a named constructor. |
| /// @author iefremov |
| |
| |
| class C { |
| var x; |
| C.someConstructor(this.x); |
| } |
| |
| main() { |
| new C(); |
| // ^ |
| // [analyzer] unspecified |
| // [cfe] unspecified |
| } |