summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/analyzer/features/cast_enum_to_int.gd
blob: 77ef9e2073baf4904f1860e40da69546d3d1904b (plain)
1
2
3
4
5
6
7
8
9
# GH-85882

enum Foo { A, B, C }

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