2015-03-05 03:15:55 +01:00
tests/cases/compiler/functionAndInterfaceWithSeparateErrors.ts(1,10): error TS2394: Overload signature is not compatible with function implementation.
2014-09-12 22:35:07 +02:00
tests/cases/compiler/functionAndInterfaceWithSeparateErrors.ts(6,5): error TS2411: Property 'prop' of type 'number' is not assignable to string index type 'string'.
2014-07-15 22:10:22 +02:00
==== tests/cases/compiler/functionAndInterfaceWithSeparateErrors.ts (2 errors) ====
function Foo(s: string);
2015-03-05 03:15:55 +01:00
~~~
2014-09-12 00:19:57 +02:00
!!! error TS2394: Overload signature is not compatible with function implementation.
2014-07-15 22:10:22 +02:00
function Foo(n: number) { }
interface Foo {
[s: string]: string;
prop: number;
~~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2411: Property 'prop' of type 'number' is not assignable to string index type 'string'.
2014-07-15 22:10:22 +02:00
}