TypeScript/tests/baselines/reference/classWithOverloadImplementationOfWrongName.js

15 lines
296 B
TypeScript

//// [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;
})();