TypeScript/tests/baselines/reference/declFileForClassWithPrivateOverloadedFunction.js
2015-02-06 18:45:09 -08:00

23 lines
455 B
JavaScript

//// [declFileForClassWithPrivateOverloadedFunction.ts]
class C {
private foo(x: number);
private foo(x: string);
private foo(x: any) { }
}
//// [declFileForClassWithPrivateOverloadedFunction.js]
var C = (function () {
function C() {
}
C.prototype.foo = function (x) { };
return C;
})();
//// [declFileForClassWithPrivateOverloadedFunction.d.ts]
declare class C {
private foo(x);
private foo(x);
}