blob: 9d992d72f7bf615960fd06b2171dfa195d726a9e [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();
}