blob: 09a7dc62680b592f9bb1a3843122de3919a3345d [file] [log] [blame] [edit]
// 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 An augmentation declaration D is a declaration marked with the
/// new built-in identifier `augment`, which makes D augment a declaration D1
/// with the same name and in the same context as D. D1 is determined as being
/// before D and after every other declaration with the same name and in the
/// same context which is before D (that is, D1 is the greatest declaration
/// which is smaller than D, according to the 'after' ordering). A compile-time
/// error occurs if no declaration satisfies the requirements on D1.
///
/// @description Checks that it is a compile-time error if an augmentation
/// declaration is applied before the augmented declaration.
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=macros
part of 'augmenting_declarations_A03_t02.dart';
class C {}
// ^
// [analyzer] unspecified
// [cfe] unspecified