TypeScript/tests/baselines/reference/classWithTwoConstructorDefinitions.js

23 lines
391 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [classWithTwoConstructorDefinitions.ts]
class C {
constructor() { }
constructor(x) { } // error
}
class D<T> {
constructor(x: T) { }
constructor(x: T, y: T) { } // error
}
//// [classWithTwoConstructorDefinitions.js]
var C = (function () {
function C() {
}
return C;
})();
var D = (function () {
function D(x) {
}
return D;
})();