modules/gdscript/tests/scripts/runtime/errors/reload_suspended_function.notest.gd
raw| 1 | # TODO: This test is currently disabled since it triggers some complex memory leaks. Try enabling it again once GH-101830 is fixed. |
| 2 | |
| 3 | signal finished |
| 4 | |
| 5 | const scr: GDScript = preload("reload_suspended_function_helper.notest.gd") |
| 6 | |
| 7 | func test(): |
| 8 | @warning_ignore("UNSAFE_METHOD_ACCESS") |
| 9 | scr.test(self) |
| 10 | @warning_ignore("RETURN_VALUE_DISCARDED") |
| 11 | scr.reload(true) |
| 12 | finished.emit() |