TypeScript/tests/baselines/reference/stringIndexerAndConstructor.errors.txt
2014-07-12 17:30:19 -07:00

18 lines
536 B
Plaintext

==== tests/cases/compiler/stringIndexerAndConstructor.ts (2 errors) ====
class C {
[s: string]: number;
constructor() { }
static v() { }
}
interface I {
[s: string]: number;
(): boolean;
new (): boolean;
"": string;
~~~~~~~~~~~
!!! Property '""' of type 'string' is not assignable to string index type 'number'.
d: string;
~~~~~~~~~~
!!! Property 'd' of type 'string' is not assignable to string index type 'number'.
}