godot/modules/gdscript/tests/scripts/analyzer/features/cast_enum_to_int.gd

# GH-85882

enum Foo { A, B, C }

func test():
	var a := Foo.A
	var b := a as int + 1
	print(b)