summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/analyzer/features/enum_from_outer.gd
blob: 4d6852a9bef7b9da0bdf124ffc98ed44ff0f99b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
enum Named { VALUE_A, VALUE_B, VALUE_C = 42 }

class Test:
	var a = Named.VALUE_A
	var b = Named.VALUE_B
	var c = Named.VALUE_C

func test():
	var test_instance = Test.new()
	prints("a", test_instance.a, test_instance.a == Named.VALUE_A)
	prints("b", test_instance.b, test_instance.b == Named.VALUE_B)
	prints("c", test_instance.c, test_instance.c == Named.VALUE_C)