Debian Codegraph @

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

raw
1 class A:
2 var x = 3
3
4 class B:
5 var x = 4
6
7 class C:
8 var x = 5
9
10 class Test:
11 var a = A.new()
12 var b: B = B.new()
13 var c := C.new()
14
15 func test():
16 var test_instance := Test.new()
17 prints(test_instance.a.x)
18 prints(test_instance.b.x)
19 prints(test_instance.c.x)