TypeScript/tests/baselines/reference/addMoreOverloadsToBaseSignature.errors.txt
2014-09-11 16:11:08 -07:00

13 lines
459 B
Plaintext

==== tests/cases/compiler/addMoreOverloadsToBaseSignature.ts (1 errors) ====
interface Foo {
f(): string;
}
interface Bar extends Foo {
~~~
!!! error TS2429: Interface 'Bar' incorrectly extends interface 'Foo':
!!! error TS2429: Types of property 'f' are incompatible:
!!! error TS2429: Type '(key: string) => string' is not assignable to type '() => string'.
f(key: string): string;
}