Debian Codegraph @

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

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