virtualx-engine/modules/gdscript/tests/scripts/parser/warnings/shadowed_variable_class.gd

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
229 B
GDScript3
Raw Normal View History

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