summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/runtime
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-04-10 17:49:44 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-04-10 17:49:44 +0200
commit8611fd8400fcc2053baa2d001ef7b9d8705b9d8a (patch)
tree87d61e013f4386b7de91a00eac1d050e3dae4bf2 /modules/gdscript/tests/scripts/runtime
parent7c23d32446c835182d60a1afe916caf263ad9c1e (diff)
parent877802e2520e03593d2e5cf76cfa7659899b1aa4 (diff)
downloadredot-engine-8611fd8400fcc2053baa2d001ef7b9d8705b9d8a.tar.gz
Merge pull request #90442 from vnen/gdscript-dont-warn-using-default-builtin
GDScript: Don't warn on unassigned for builtin-typed variables
Diffstat (limited to 'modules/gdscript/tests/scripts/runtime')
-rw-r--r--modules/gdscript/tests/scripts/runtime/features/reset_unassigned_variables_in_loops.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/runtime/features/reset_unassigned_variables_in_loops.gd b/modules/gdscript/tests/scripts/runtime/features/reset_unassigned_variables_in_loops.gd
index c45f8dce48..2bd5362f2a 100644
--- a/modules/gdscript/tests/scripts/runtime/features/reset_unassigned_variables_in_loops.gd
+++ b/modules/gdscript/tests/scripts/runtime/features/reset_unassigned_variables_in_loops.gd
@@ -7,6 +7,7 @@ func test():
var b
if true:
var c
+ @warning_ignore("unassigned_variable")
prints("Begin:", i, a, b, c)
a = 1
b = 1
@@ -20,6 +21,7 @@ func test():
var b
if true:
var c
+ @warning_ignore("unassigned_variable")
prints("Begin:", j, a, b, c)
a = 1
b = 1