TypeScript/tests/baselines/reference/instantiateGenericClassWithZeroTypeArguments.js
2014-08-14 06:42:18 -07:00

32 lines
574 B
TypeScript

//// [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();