virtualx-engine/modules/gdscript/tests/scripts/parser/warnings/shadowed_variable_class.gd
Hugo Locurcio c0083c0f90
Add dozens of new integration tests to the GDScript test suite
This also ignores `.out` files in the file format static checks.
2021-09-14 18:42:08 +02:00

8 lines
229 B
GDScript

var foo = 123
func test():
# Notice the `var` keyword. Without this keyword, no warning would be emitted
# because no new variable would be created. Instead, the class variable's value
# would be overwritten.
var foo = 456