mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
![Nicholas Shahan](/assets/img/avatar_default.png)
Issue: https://github.com/dart-lang/sdk/issues/52688 Change-Id: Icf86132330c8dac8787837774505d65a00be7eb7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/308811 Reviewed-by: Sigmund Cherem <sigmund@google.com>
26 lines
556 B
Dart
26 lines
556 B
Dart
// Copyright (c) 2023, 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.
|
|
|
|
import 'package:expect/expect.dart';
|
|
|
|
/// Regression test for https://github.com/dart-lang/sdk/issues/52688.
|
|
|
|
class A<T> extends W with C<T> {}
|
|
|
|
mixin C<S> on W {
|
|
foo(M<S> c);
|
|
}
|
|
mixin M<R> on O {}
|
|
|
|
class W {
|
|
foo(covariant O b) {}
|
|
}
|
|
|
|
class O {}
|
|
|
|
main() {
|
|
// Expectation only here to ensure test is running.
|
|
Expect.isNotNull(A());
|
|
}
|