2014-10-28 08:28:59 +01:00
|
|
|
tests/cases/compiler/addMoreOverloadsToBaseSignature.ts(5,11): error TS2430: Interface 'Bar' incorrectly extends interface 'Foo'.
|
|
|
|
Types of property 'f' are incompatible.
|
2014-09-12 22:35:07 +02:00
|
|
|
Type '(key: string) => string' is not assignable to type '() => string'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/addMoreOverloadsToBaseSignature.ts (1 errors) ====
|
|
|
|
interface Foo {
|
|
|
|
f(): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Bar extends Foo {
|
|
|
|
~~~
|
2014-10-28 08:28:59 +01:00
|
|
|
!!! error TS2430: Interface 'Bar' incorrectly extends interface 'Foo'.
|
|
|
|
!!! error TS2430: Types of property 'f' are incompatible.
|
|
|
|
!!! error TS2430: Type '(key: string) => string' is not assignable to type '() => string'.
|
2014-07-13 01:04:16 +02:00
|
|
|
f(key: string): string;
|
|
|
|
}
|
|
|
|
|