blob: af7496134a47269d036efe078f47d2fa45d8070d [file] [log] [blame]
// Copyright (c) 2019, 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.
// @dart = 2.9
/// @assertion Any use of a type [T] which is not well-bounded is a
/// compile-time error.
/// @description Checks that compile error is thrown when function with not well
/// bounded type parameter is declared
/// @author iarkh@unipro.ru
class A<T extends A<T>> {}
void testme1<X extends A>() {} //# 01: compile-time error
void testme2<X extends A<A>>() {} //# 02: compile-time error
void testme3<X extends A<int>>() {} //# 03: compile-time error
main() {
}