godot/modules/gdscript/tests/scripts/parser/warnings/unused_constant.gd

5 lines
135 B
GDScript

func test():
const UNUSED = "not used"
const _UNUSED = "not used, but no warning since the constant name starts with an underscore"