blob: 3f0d9af5535803ea1acc7cd8c92cfcc495a0e37e [file] [log] [blame]
/*
* Copyright (c) 2021, 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-weak
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();
}