Files
sdk/pkg/dynamic_modules/test/data/apply_mixin/shared/shared.dart
T
Sigmund Cherem 0064249ab3 [trim] relax language version requirement.
Only enforce that a library must be 3.0 or higher if it
contains extendable elements. Otherwise, we can ignore legacy
mixin classes and trim the entire library.

TESTED=apply_mixin case in dynamic_modules tests.

Change-Id: I1378c6d4678305ae634b4259e7eb28a48327d645
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/425187
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2025-04-29 09:38:55 -07:00

14 lines
356 B
Dart

// 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.
export 'shared_old.dart';
abstract interface class A {
int method1();
}
mixin M on A {
String method2() => '${super.method1()} 2';
}