Debian Codegraph @

modules/gdscript/tests/scripts/parser/warnings/shadowed_variable_class.gd

raw
1 var foo = 123
2
3
4 func test():
5 # Notice the `var` keyword. Without this keyword, no warning would be emitted
6 # because no new variable would be created. Instead, the class variable's value
7 # would be overwritten.
8 var foo = 456