virtualx-engine/modules/gdscript/tests/scripts/analyzer/errors/invalid_constant.gd

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

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