2014-07-13 01:04:16 +02:00
|
|
|
//// [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]
|
2014-07-11 23:44:31 +02:00
|
|
|
declare class C {
|
|
|
|
private foo(x);
|
|
|
|
private foo(x);
|
|
|
|
}
|