☰
Debian Codegraph
@
4.6.3+ds-2
/
/
modules
/
gdscript
/
tests
/
scripts
/
parser
/
warnings
/
shadowed_variable_class.gd
☽
☼
modules/gdscript/tests/scripts/parser/warnings/shadowed_variable_class.gd
code
plain
raw
Expat
2014-present, Godot Engine contributors; 2007-2014, Juan Linietsky, Ariel Manzur
debian/copyright
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