blob: dfeba47f812b54fb43d16360915cd0e3a395558c [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
*/
class T {}
class T1 extends T {}
class T2 extends T {}
class A<X> {}
class B<X extends T> implements A<X> {}
class C1 extends B<T1> implements A<T> {}
// ^^
// [analyzer] unspecified
// [cfe] unspecified
class C2 extends B<T1> implements A<T2> {}
// ^^
// [analyzer] unspecified
// [cfe] unspecified
main() {
new C1();
new C2();
}