Hi Tim,
The `x.[i] <- v` syntax maps to `String.set` function, that has type `string -> char -> unit`, the array subscription syntax uses parentheses instead of the brackets. So in your case, it should be
x.array_field.(1) <- 3
If you are concerned with the warning, that is emitted before the error. Then this is expected, as `x.[i] <- v` is a syntactic sugar to the `String.set` and it is translated on the lexing level. Thus the type checker never sees the array/string/bigarray subscript operators (as they are not present in the AST)
Regards,
Ivan