TypeScript/tests/baselines/reference/classWithTwoConstructorDefinitions.js
2014-10-01 11:27:20 -07:00

23 lines
427 B
TypeScript

//// [classWithTwoConstructorDefinitions.ts]
class C {
constructor() { } // error
constructor(x) { } // error
}
class D<T> {
constructor(x: T) { } // error
constructor(x: T, y: T) { } // error
}
//// [classWithTwoConstructorDefinitions.js]
var C = (function () {
function C() {
} // error
return C;
})();
var D = (function () {
function D(x) {
} // error
return D;
})();