virtualx-engine/modules/gdscript/tests/scripts/parser/warnings/shadowed_constant.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
244 B
GDScript

# 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