TypeScript/tests/baselines/reference/functionAndInterfaceWithSeparateErrors.errors.txt
2014-07-16 13:34:27 -07:00

12 lines
445 B
Plaintext

==== tests/cases/compiler/functionAndInterfaceWithSeparateErrors.ts (2 errors) ====
function Foo(s: string);
~~~~~~~~~~~~~~~~~~~~~~~~
!!! Overload signature is not compatible with function implementation.
function Foo(n: number) { }
interface Foo {
[s: string]: string;
prop: number;
~~~~~~~~~~~~~
!!! Property 'prop' of type 'number' is not assignable to string index type 'string'.
}