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

10 lines
252 B
TypeScript
Raw Normal View History

// Derived interfaces no longer hide signatures from base types, so these signatures are always compatible.
interface Base {
(): string;
new (x: string): number;
}
interface Derived extends Base {
(): number;
new (x: string): string;
}