2023-01-11 01:08:46 +00:00
|
|
|
func test():
|
|
|
|
var gdscr: = GDScript.new()
|
|
|
|
gdscr.source_code = '''
|
|
|
|
extends Resource
|
|
|
|
|
|
|
|
func test() -> void:
|
|
|
|
prints("Outer")
|
|
|
|
var inner = InnerClass.new()
|
|
|
|
|
|
|
|
class InnerClass:
|
|
|
|
func _init() -> void:
|
|
|
|
prints("Inner")
|
|
|
|
'''
|
2023-01-18 17:12:33 +00:00
|
|
|
@warning_ignore("return_value_discarded")
|
2023-01-11 01:08:46 +00:00
|
|
|
gdscr.reload()
|
|
|
|
|
|
|
|
var inst = gdscr.new()
|
|
|
|
|
2023-01-18 17:12:33 +00:00
|
|
|
@warning_ignore("unsafe_method_access")
|
2023-01-11 01:08:46 +00:00
|
|
|
inst.test()
|