godot/modules/gdscript/tests/scripts/analyzer/errors/invalid_constant.gd

6 lines
192 B
GDScript3
Raw Normal View History

func test():
var i = 12
# Constants must be made of a constant, deterministic expression.
# A constant that depends on a variable's value is not a constant expression.
const TEST = 13 + i