Debian Codegraph @

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

raw
1 # GH-80508
2
3 class A:
4 func a():
5 return A.new()
6 func b():
7 return B.new()
8
9 class B:
10 func a():
11 return A.new()
12 func b():
13 return B.new()
14
15 func test():
16 var a := A.new()
17 var b := B.new()
18 print(a.a() is A)
19 print(a.b() is B)
20 print(b.a() is A)
21 print(b.b() is B)