blob: 6e6e5aa918380c15627ccd9b11d296f0962b4e28 [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.
/// @assertion Any use of a type [T] which is not well-bounded is a
/// compile-time error.
/// @description Checks that compile error is not thrown when call generic
/// function with well bounded type parameter
/// @author iarkh@unipro.ru
class A<T> {}
void testme<X extends num>() {}
main() {
testme();
testme<num>();
testme<int>();
}