summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/runtime
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2024-04-24 20:49:52 +0300
committerDanil Alexeev <danil@alexeev.xyz>2024-04-24 20:49:52 +0300
commit4136ed7fc898a0f8160f9c39374566ae26256574 (patch)
tree0836d244277f04c2ee077cc41d103e161b2b14de /modules/gdscript/tests/scripts/runtime
parent4bca2d8bc64e84a764ee656b9c42443b24448f53 (diff)
downloadredot-engine-4136ed7fc898a0f8160f9c39374566ae26256574.tar.gz
GDScript: Fix test `reset_uninit_local_vars.gd` failure
Diffstat (limited to 'modules/gdscript/tests/scripts/runtime')
-rw-r--r--modules/gdscript/tests/scripts/runtime/features/reset_uninit_local_vars.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gdscript/tests/scripts/runtime/features/reset_uninit_local_vars.gd b/modules/gdscript/tests/scripts/runtime/features/reset_uninit_local_vars.gd
index b676ece24b..ef2d9a1d60 100644
--- a/modules/gdscript/tests/scripts/runtime/features/reset_uninit_local_vars.gd
+++ b/modules/gdscript/tests/scripts/runtime/features/reset_uninit_local_vars.gd
@@ -10,12 +10,12 @@ func test():
var c := 1
if true:
- @warning_ignore("unassigned_variable")
var a
- print(a)
@warning_ignore("unassigned_variable")
+ print(a)
var b
- print(b)
@warning_ignore("unassigned_variable")
+ print(b)
var c: Object
+ @warning_ignore("unassigned_variable")
print(c)