☰
Debian Codegraph
@
4.6.3+ds-2
/
/
modules
/
gdscript
/
tests
/
scripts
/
analyzer
/
features
/
cast_enum_to_int.gd
☽
☼
modules/gdscript/tests/scripts/analyzer/features/cast_enum_to_int.gd
code
plain
raw
Expat
2014-present, Godot Engine contributors; 2007-2014, Juan Linietsky, Ariel Manzur
debian/copyright
1
# GH-85882
2
3
enum Foo { A, B, C }
4
5
func test():
6
var a := Foo.A
7
var b := a as int + 1
8
print(b)