diff --git a/LanguageFeatures/Augmentation-libraries/defining_augmentation_A05_t01.dart b/LanguageFeatures/Augmentation-libraries/defining_augmentation_A05_t01.dart new file mode 100644 index 0000000000..6edcb36667 --- /dev/null +++ b/LanguageFeatures/Augmentation-libraries/defining_augmentation_A05_t01.dart @@ -0,0 +1,25 @@ +// 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 It is a compile-time error if a library tries to augment itself +/// +/// @description Checks that it is a compile-time error if a library tries to +/// augment itself +/// @author sgrekhov22@gmail.com +/// @issue 55168, 55169 + +// SharedOptions=--enable-experiment=macros + +library augment 'defining_augmentation_A05_t01.dart'; +// ^ +// [analyzer] unspecified +// [cfe] unspecified + +import augment 'defining_augmentation_A05_t01.dart'; +// ^ +// [analyzer] unspecified +// [cfe] unspecified + +main() { +} diff --git a/LanguageFeatures/Augmentation-libraries/defining_augmentation_A05_t02.dart b/LanguageFeatures/Augmentation-libraries/defining_augmentation_A05_t02.dart new file mode 100644 index 0000000000..0ec98448db --- /dev/null +++ b/LanguageFeatures/Augmentation-libraries/defining_augmentation_A05_t02.dart @@ -0,0 +1,25 @@ +// 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 It is a compile-time error if a library tries to augment itself +/// +/// @description Checks that it is a compile-time error if a library tries to +/// augment itself. Test cycling dependency +/// @author sgrekhov22@gmail.com +/// @issue 55168, 55169 + +// SharedOptions=--enable-experiment=macros + +library augment 'defining_augmentation_A05_t02_lib.dart'; +// ^ +// [analyzer] unspecified +// [cfe] unspecified + +import augment 'defining_augmentation_A05_t02_lib.dart'; +// ^ +// [analyzer] unspecified +// [cfe] unspecified + +main() { +} diff --git a/LanguageFeatures/Augmentation-libraries/defining_augmentation_A05_t02_lib.dart b/LanguageFeatures/Augmentation-libraries/defining_augmentation_A05_t02_lib.dart new file mode 100644 index 0000000000..2b72ae0a50 --- /dev/null +++ b/LanguageFeatures/Augmentation-libraries/defining_augmentation_A05_t02_lib.dart @@ -0,0 +1,22 @@ +// 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 It is a compile-time error if a library tries to augment itself +/// +/// @description Checks that it is a compile-time error if a library tries to +/// augment itself. Test cycling dependency +/// @author sgrekhov22@gmail.com +/// @issue 55168, 55169 + +// SharedOptions=--enable-experiment=macros + +library augment 'defining_augmentation_A05_t02.dart'; +// ^ +// [analyzer] unspecified +// [cfe] unspecified + +import augment 'defining_augmentation_A05_t02.dart'; +// ^ +// [analyzer] unspecified +// [cfe] unspecified