7fa8694c45
Change-Id: Ia39b96db7470fd9d7bb5f6683262d78a1a08ada7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/276769 Reviewed-by: Bob Nystrom <rnystrom@google.com> Commit-Queue: Kallen Tu <kallentu@google.com>
19 lines
481 B
Dart
19 lines
481 B
Dart
// Copyright (c) 2022, 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.
|
|
|
|
// SharedOptions=--enable-experiment=class-modifiers
|
|
|
|
// Allow final classes to be implemented in the same library.
|
|
|
|
final class FinalClass {
|
|
int foo = 0;
|
|
}
|
|
|
|
abstract class A implements FinalClass {}
|
|
|
|
class B implements FinalClass {
|
|
@override
|
|
int foo = 1;
|
|
}
|