TypeScript/tests/baselines/reference/classWithOverloadImplementationOfWrongName.js
2014-07-12 17:30:19 -07:00

16 lines
301 B
JavaScript

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