2f90f8d0ef
R=brianwilkerson@google.com, paulberry@google.com Fixes: https://github.com/dart-lang/sdk/issues/34896 Change-Id: I778d572e2e2d0affb15c28d7bf2c1fbb58a8cd8a Reviewed-on: https://dart-review.googlesource.com/c/81204 Commit-Queue: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Paul Berry <paulberry@google.com>
21 lines
512 B
Dart
21 lines
512 B
Dart
// Copyright (c) 2018, 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.
|
|
|
|
// Regression test: verify super-signatures of super-invoked methods of a
|
|
// mixin against the superclass, not signatures in the mixin.
|
|
|
|
class A<T> {
|
|
void remove(T x) {}
|
|
}
|
|
|
|
mixin M<U> on A<U> {
|
|
void remove(Object x) {
|
|
super.remove(x as U);
|
|
}
|
|
}
|
|
|
|
class X<T> = A<T> with M<T>;
|
|
|
|
main() {}
|