7 lines
No EOL
256 B
Text
7 lines
No EOL
256 B
Text
==== tests/cases/compiler/stringIndexerAndConstructor1.ts (1 errors) ====
|
|
interface I {
|
|
[s: string]: number;
|
|
"": string;
|
|
~~~~~~~~~~~
|
|
!!! Property '""' of type 'string' is not assignable to string index type 'number'.
|
|
} |