summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/parser/features/constants.gd
blob: 013c9c074f1f695338f258ed8ec58baa82710719 (plain)
1
2
3
4
5
6
7
8
9
10
11
func test():
	const _TEST = 12 + 34 - 56 * 78
	const _STRING = "yes"
	const _VECTOR = Vector2(5, 6)
	const _ARRAY = []
	const _DICTIONARY = {"this": "dictionary"}

	# Create user constants from built-in constants.
	const _HELLO = PI + TAU
	const _INFINITY = INF
	const _NOT_A_NUMBER = NAN