That is as I would expect it and it is not a bug.
In is an unusual use of the 'inc' command. The command is expected to be used against a numeric variable.
The '.length' of an array is not a normal variable. It is a special object associated with the array that the compiler treats differently. The command to grow or resize an array by changing this value is a special case.
I don't think I know of any language that uses the array.length type object/construct that would allow you to use it with an inc command.
(Usual disclaimer, I didn't create this language or compiler. Maybe the developers of this combination did mean to allow that and didn't code for it. But I have my doubts about that.)
Cheers,
Ancient Lady