blob: 98a12b902c0e7244459d33b9b3c9d3db6e44b6b2 [file] [log] [blame]
// 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 superclass of a class C is
/// specified as a superinterface of C.
/// @description Test checks that it is a compile-time error when a class has
/// the same class as superclass and interface. Test type aliases
/// @compile-error
/// @author sgrekhov@unipro.ru
// SharedOptions=--enable-experiment=nonfunction-type-aliases
abstract class A {}
typedef AAlias = A;
class C extends AAlias implements A {}
main () {
new C();
}