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

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

9 lines
244 B
GDScript3
Raw Normal View History

# See also `parser-errors/redefine-class-constant.gd`.
const TEST = 25
func test():
# Warning here. This is not an error because a new constant is created,
# rather than attempting to set the value of an existing constant.
const TEST = 50