blob: 035cac384780772211b0d68d73a5a1458c42914b [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=class-modifiers
// Allow interface mixins to be implemented by multiple classes outside its
// library.
import 'package:expect/expect.dart';
import 'interface_mixin_implement_lib.dart';
abstract class AOutside implements InterfaceMixin {}
class AOutsideImpl implements AOutside {
@override
int foo = 1;
}
class BOutside implements InterfaceMixin {
@override
int foo = 1;
}
main() {
Expect.equals(1, AOutsideImpl().foo);
Expect.equals(1, BOutside().foo);
}