swc/crates/swc_ecma_parser/tests/tsc/interfaceWithCallSignaturesThatHidesBaseSignature2.ts

10 lines
148 B
TypeScript

interface Foo {
(): { a: number; b: number };
}
interface Derived extends Foo { // error
(): { a: number };
}
var d: Derived;
var r = d();