blob: 76b4b8ec04fbdd6ecd28e9b89ad89f701529fb7d [file] [log] [blame]
// Copyright (c) 2024, 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 A class, enum, extension type, or mixin augmentation may specify
/// extends, implements, on, and with clauses (when generally supported). The
/// types in these clauses are appended to the original declarations clauses of
/// the same kind, and if that clause did not exist previously then it is added
/// with the new types. All regular rules apply after this appending process, so
/// you cannot have multiple extends on a class, or an on clause on an enum, etc
///
/// @description Checks that it is a compile-time error if an augment adds
/// augmented class itself in an `extends` statement
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=macros
import augment 'augmenting_types_A06_t06_lib.dart';
class C {}
main() {
print(C);
}