| // 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 |