16 lines
329 B
TypeScript
16 lines
329 B
TypeScript
//// [overloadResolutionOnDefaultConstructor1.ts]
|
|
class Bar {
|
|
public clone() {
|
|
return new Bar(0);
|
|
}
|
|
}
|
|
|
|
//// [overloadResolutionOnDefaultConstructor1.js]
|
|
var Bar = (function () {
|
|
function Bar() {
|
|
}
|
|
Bar.prototype.clone = function () {
|
|
return new Bar(0);
|
|
};
|
|
return Bar;
|
|
})();
|