TypeScript/tests/baselines/reference/stringIndexerAndConstructor1.errors.txt

10 lines
428 B
Plaintext
Raw Normal View History

tests/cases/compiler/stringIndexerAndConstructor1.ts(3,5): error TS2411: Property '""' of type 'string' is not assignable to string index type 'number'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/stringIndexerAndConstructor1.ts (1 errors) ====
interface I {
[s: string]: number;
"": string;
~~~~~~~~~~~
!!! error TS2411: Property '""' of type 'string' is not assignable to string index type 'number'.
2014-07-13 01:04:16 +02:00
}