virtualx-engine/modules/gdscript/tests/scripts/runtime/features/gdscript.gd

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
352 B
GDScript3
Raw Normal View History

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")
'''
@warning_ignore(return_value_discarded)
gdscr.reload()
var inst = gdscr.new()
@warning_ignore(unsafe_method_access)
inst.test()