| // 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 Consider a non-augmenting member declaration Dm that occurs |
| /// inside an augmenting type declaration Dt. A compile-time error occurs if the |
| /// identifier `augmented` occurs in Dm. |
| /// |
| /// @description Checks that it is a compile-time error to declare a local |
| /// variable whose name is `augmented` in a non-augmenting member declaration |
| /// inside an augmenting declaration. |
| /// @author sgrekhov22@gmail.com |
| |
| // SharedOptions=--enable-experiment=macros |
| |
| part 'augmented_expression_A10_t02_lib.dart'; |
| |
| class C {} |
| mixin M {} |
| enum E {e0;} |
| |
| class A {} |
| extension Ext on A {} |
| extension type ET(int _) {} |
| |
| main() { |
| print(C); |
| print(M); |
| print(E); |
| print(A); |
| print(ET); |
| } |