The new short variable syntax doesn't work right with arrays

I’m just going to bump this because I just tried it with the latest version (5.3.180) and it still doesn’t handle arrays correctly. string is the name of a text array, number is an array of numbers. It’s ignoring the variable type if it’s first and trying to add the variables as if they’re numbers.

It’s frustrating trying to use the new variable syntax but then running into issues.
image

The new short variable syntax doesn’t work right with arrays. It seems to sometimes treat numbers like strings and strings like numbers. You can add or append arrays onto strings but you can’t add strings onto arrays.

Source:

.
These work, although the 3rd line is a bit ambiguous. It’s adding 2 number variable but treating them like text. I can understand and live with it.
image

.
These work when the array is in the 2nd position but not the first.
image

The errors
image

image

image

Yeah, I’ve noticed it being a bit finicky with some things. I was doing ToNumber(“Sprite” + variable + “.X()”) and it kept saying “You’ve entered text when a number was expected.” It would seemingly appear at random, only highlighting the “.X()”) and maybe a couple more parentheses. I had 3 others similar to it in a DistanceBetweenPositions expression so there were multiple different expressions written the exact same way but it kept saying that one was off. This was a multilayered expression.