E3004 Type Errors
invalid-index-assignment-type
invalid type for index assignment
When this occurs
Assigning wrong type to string index
Example error message
error[E3004]:
can only assign character to string index, got INTEGER
How to fix
The assigned value must match the array's element type.