outer_class_lookup.gd 126 B

123456789101112
  1. class A:
  2. class B:
  3. func test():
  4. print(A.B.D)
  5. class C:
  6. class D:
  7. pass
  8. func test():
  9. var inst = A.B.new()
  10. inst.test()