1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
//// [instantiateNonGenericTypeWithTypeArguments.ts]
// it is an error to provide type arguments to a non-generic call
// all of these are errors
class C {
x: string;
}
var c = new C<number>();
function Foo(): void { }
var r = new Foo<number>();
var f: { (): void };
var r2 = new f<number>();
var a: any;
// BUG 790977
var r2 = new a<number>();
//// [instantiateNonGenericTypeWithTypeArguments.js]
// it is an error to provide type arguments to a non-generic call
// all of these are errors
var C = /** @class */ (function () {
function C() {
}
return C;
}());
var c = new C();
function Foo() { }
var r = new Foo();
var f;
var r2 = new f();
var a;
// BUG 790977
var r2 = new a();
|