18 lines
415 B
TypeScript
18 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;
|
|
})();
|