Debian Codegraph @

modules/gdscript/tests/scripts/runtime/features/gdscript.gd

raw
1 func test():
2 var gdscr: = GDScript.new()
3 gdscr.source_code = '''
4 extends Resource
5
6 func test() -> void:
7 prints("Outer")
8 var inner = InnerClass.new()
9
10 class InnerClass:
11 func _init() -> void:
12 prints("Inner")
13 '''
14 @warning_ignore("return_value_discarded")
15 gdscr.reload()
16
17 var inst = gdscr.new()
18
19 @warning_ignore("unsafe_method_access")
20 inst.test()