☰
Debian Codegraph
@
4.6.3+ds-2
/
/
modules
/
gdscript
/
tests
/
scripts
/
analyzer
/
features
/
enums_in_range_call.gd
☽
☼
modules/gdscript/tests/scripts/analyzer/features/enums_in_range_call.gd
code
plain
raw
Expat
2014-present, Godot Engine contributors; 2007-2014, Juan Linietsky, Ariel Manzur
debian/copyright
1
enum E { E0 = 0, E3 = 3 }
2
3
func test():
4
var total := 0
5
for value in range(E.E0, E.E3):
6
var inferable := value
7
total += inferable
8
Utils.check(total == 0 + 1 + 2)
9
print('ok')