92ef752810
All supertypes of classes marked as "dyn-module:extendable" are technically also extendable in dynamic modules since subtyping is transitive. Also skip marking 'final' classes as dynamic module extendable. Change-Id: I124eae56b78b98aba8712158fda87bbc8e652ed3 Tested: Ran tests for dynamic interface annotator. Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/403960 Commit-Queue: Nate Biggs <natebiggs@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>
16 lines
373 B
Dart
16 lines
373 B
Dart
// Copyright (c) 2025, 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.
|
|
|
|
class Base {
|
|
int method1() => 1;
|
|
int method2() => 2;
|
|
}
|
|
|
|
class Sub1 extends Base {
|
|
@override
|
|
int method1() => 3;
|
|
@override
|
|
int method2() => 4;
|
|
}
|