| // Copyright (c) 2019, 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 It is a compile-time error if the interface of a class C is a |
| /// superinterface of itself. |
| /// @description When a class name appears as a type or interface, that name |
| /// denotes the interface of the class. |
| /// Test checks that it is a compile-time error when a class's own name is |
| /// included in its implements clause. |
| /// @author sgrekhov@unipro.ru |
| |
| abstract class I {} |
| |
| class C implements I, CAlias {} |
| // ^ |
| // [analyzer] unspecified |
| // [cfe] unspecified |
| |
| typedef CAlias = C; |
| |
| main () { |
| new C(); |
| } |