BUG when using underscore (_) in array name declaration

Godot Version



When declaring an array with underscore like this example

var my_array : Array[String]

gave me the following error

“Parse Error: Identifier “my_array” not declared in the current scope.”

After more than 30 minutes trying everything, it simply It worked. It’s definitely a bug!

Hi, this forum is not for bug reports. You can report those on GitHub. Be sure to create a new project that reproduces the error. This is needed so that the developers can get the same bug and try to solve it.

1 Like

I’ve had dozens of typed arrays with _ in their name. It must be something else which was wrong with your code.