blob: 1beadc07a98c15d3b4344caaabf3631d602c702a [file] [log] [blame] [edit]
// Copyright (c) 2023, 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 Abstract final class cannot be constructed, extended, implemented
/// or mixed in and is not exhaustive
///
/// @description Checks that it is not an error to declare a `base mixin` on an
/// `abstract final class` in the same library where it is defined
/// @author sgrekhov22@gmail.com
abstract final class AbstractFinalClass {}
base mixin BaseMixinOnFinalClass on AbstractFinalClass {}
main() {
print(BaseMixinOnFinalClass);
}