blob: 62c3c301f7686dc80c8f92739cac0651020cf725 [file] [log] [blame]
// 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=sealed-class
// Error when attempting to implement a sealed class outside of its library.
import "sealed_class_implement_lib.dart";
abstract class OutsideA implements SealedClass {}
// ^
// [analyzer] unspecified
// [cfe] unspecified
class OutsideB implements SealedClass {
// ^
// [analyzer] unspecified
// [cfe] unspecified
@override
int nonAbstractFoo = 2;
@override
int foo = 2;
@override
int nonAbstractBar(int value) => value;
@override
int bar(int value) => value;
}