TypeScript/tests/baselines/reference/instantiateGenericClassWithZeroTypeArguments.js

32 lines
574 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [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
2014-07-13 01:04:16 +02:00
var C = (function () {
function C() {
}
return C;
})();
var c = new C();
var D = (function () {
function D() {
}
return D;
})();
var d = new D();