TypeScript/tests/baselines/reference/classWithTwoConstructorDefinitions.js

23 lines
427 B
TypeScript
Raw Normal View History

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