blob: d8b67e85df627e47827306b4d5daf05bb9e97fd4 [file] [log] [blame]
/*
* Copyright (c) 2011, 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 A type parameter T may be suffixed with an extends clause that
* specifies the upper bound for T. If no extends clause is present, the upper bound is Object.
* @description Checks that no static warnings or compile-time errors are produced
* when making various instances of generic class which type parameter lacks extends clause.
* @author iefremov
* @reviewer kaigorodov
*/
class G<T> {}
typedef f();
main() {
new G<int>();
new G<num>();
new G<Function>();
new G<Object>();
new G<dynamic>();
new G<f>();
new G<G>();
}