Debian Codegraph @

modules/gdscript/tests/scripts/analyzer/features/enum_from_outer.gd

raw
1 enum Named { VALUE_A, VALUE_B, VALUE_C = 42 }
2
3 class Test:
4 var a = Named.VALUE_A
5 var b = Named.VALUE_B
6 var c = Named.VALUE_C
7
8 func test():
9 var test_instance = Test.new()
10 prints("a", test_instance.a, test_instance.a == Named.VALUE_A)
11 prints("b", test_instance.b, test_instance.b == Named.VALUE_B)
12 prints("c", test_instance.c, test_instance.c == Named.VALUE_C)