blob: 9042e2fbdbcd47c71d5b90db01c1b104ae0e91f0 [file] [log] [blame]
// Copyright (c) 2020, 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.
/// @assertion
/// NORM(X extends T) =
/// let S be NORM(T)
/// if S is Never then Never
/// else X extends T
///
/// @description Checks that if NORM(T) is NORM(X extends T)
///
/// @author sgrekhov@unipro.ru
// Requirements=nnbd-strong
class T {}
class T1 extends T {}
class T2 extends T {}
class A<X> {}
class B<X extends T> implements A<X> {}
class C extends B<T1> implements A<T1> {}
main() {
new C();
}