TypeScript/tests/baselines/reference/overloadOnConstInheritance4.js

20 lines
408 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [overloadOnConstInheritance4.ts]
interface I {
x1(a: number, callback: (x: 'hi') => number);
}
class C implements I {
x1(a: number, callback: (x: 'hi') => number);
x1(a: number, callback: (x: 'hi') => number) {
}
}
//// [overloadOnConstInheritance4.js]
var C = (function () {
function C() {
}
C.prototype.x1 = function (a, callback) {
};
return C;
})();