Files
tsgo/testdata/baselines/reference/submodule/conformance/derivedInterfaceDoesNotHideBaseSignatures.js

17 lines
494 B
TypeScript

//// [tests/cases/conformance/interfaces/interfaceDeclarations/derivedInterfaceDoesNotHideBaseSignatures.ts] ////
//// [derivedInterfaceDoesNotHideBaseSignatures.ts]
// 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;
}
//// [derivedInterfaceDoesNotHideBaseSignatures.js]
"use strict";