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

19 lines
415 B
TypeScript

//// [overloadOnConstInBaseWithBadImplementationInDerived.ts]
interface I {
x1(a: number, callback: (x: 'hi') => number);
}
class C implements I {
x1(a: number, callback: (x: 'hi') => number) { // error
}
}
//// [overloadOnConstInBaseWithBadImplementationInDerived.js]
var C = (function () {
function C() {
}
C.prototype.x1 = function (a, callback) {
};
return C;
})();