Files
sdk/tests/language/class_modifiers/final/final_class_implement_lib.dart
T
Kallen Tu 7fa8694c45 [tests] Language tests for 'final' class modifier.
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>
2023-01-10 01:05:14 +00:00

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;
}