22 lines
427 B
TypeScript
22 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;
|
|
})();
|