summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/analyzer/features/enums_in_range_call.gd
blob: a569488d3cad0b8c0b4caab358ef0271f34511e1 (plain)
1
2
3
4
5
6
7
8
9
enum E { E0 = 0, E3 = 3 }

func test():
	var total := 0
	for value in range(E.E0, E.E3):
		var inferable := value
		total += inferable
	Utils.check(total == 0 + 1 + 2)
	print('ok')