blob: 738f19ed6555efbedf56b18d1185e15e3e69413d [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 It is a compile-time error if:
///
/// - The augmenting type and corresponding type are not the same kind: class,
/// mixin, enum, or extension. You can't augment a class with a mixin, etc.
///
/// @description Checks that it is not an error if an augmenting type and the
/// corresponding type are the same kind. Test type aliases
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=macros
augment library 'augmenting_types_A01_t03.dart';
augment class CAlias {
String foo() => "C";
}
augment mixin MAlias {
String foo() => "M";
}
augment enum EAlias {
augment e1;
String foo() => "E";
}