28 lines
398 B
JavaScript
28 lines
398 B
JavaScript
|
//// [tooManyTypeParameters1.ts]
|
||
|
function f<T>() { }
|
||
|
f<string, string>();
|
||
|
|
||
|
var x = <T>() => {};
|
||
|
x<number,number>();
|
||
|
|
||
|
class C<T> {}
|
||
|
var c = new C<Date,Date>();
|
||
|
|
||
|
interface I<T> {}
|
||
|
var i: I<number,number>;
|
||
|
|
||
|
//// [tooManyTypeParameters1.js]
|
||
|
function f() {
|
||
|
}
|
||
|
f();
|
||
|
var x = function () {
|
||
|
};
|
||
|
x();
|
||
|
var C = (function () {
|
||
|
function C() {
|
||
|
}
|
||
|
return C;
|
||
|
})();
|
||
|
var c = new C();
|
||
|
var i;
|