32 lines
574 B
JavaScript
32 lines
574 B
JavaScript
//// [instantiateGenericClassWithZeroTypeArguments.ts]
|
|
// no errors expected when instantiating a generic type with no type arguments provided
|
|
|
|
class C<T> {
|
|
x: T;
|
|
}
|
|
|
|
var c = new C();
|
|
|
|
class D<T, U> {
|
|
x: T
|
|
y: U
|
|
}
|
|
|
|
var d = new D();
|
|
|
|
|
|
//// [instantiateGenericClassWithZeroTypeArguments.js]
|
|
// no errors expected when instantiating a generic type with no type arguments provided
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
return C;
|
|
})();
|
|
var c = new C();
|
|
var D = (function () {
|
|
function D() {
|
|
}
|
|
return D;
|
|
})();
|
|
var d = new D();
|