summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/parser/features/variable_declaration.out
diff options
context:
space:
mode:
authorZuBsPaCe <kurt.rudin@gmx.net>2021-09-10 22:08:02 +0200
committerZuBsPaCe <kurt.rudin@gmx.net>2021-09-10 22:26:50 +0200
commit1d1aa7a02fc64286a0c81cfb40fbf16f704d017e (patch)
tree9b3d348d42824fd7395831b5f413c6e75122136f /modules/gdscript/tests/scripts/parser/features/variable_declaration.out
parent68563b57608ed50c2bf429770db75702598eb6bf (diff)
downloadredot-engine-1d1aa7a02fc64286a0c81cfb40fbf16f704d017e.tar.gz
GDScript: Removed spurious UNASSIGNED_VARIABLE warning for locals
Variable->assignment needs to be incremented when assigned a value. Also fixed and improved unit test 'variable_declaration.gd'. Fixes #52551
Diffstat (limited to 'modules/gdscript/tests/scripts/parser/features/variable_declaration.out')
-rw-r--r--modules/gdscript/tests/scripts/parser/features/variable_declaration.out6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/gdscript/tests/scripts/parser/features/variable_declaration.out b/modules/gdscript/tests/scripts/parser/features/variable_declaration.out
index 2e0a63c024..7817dd3169 100644
--- a/modules/gdscript/tests/scripts/parser/features/variable_declaration.out
+++ b/modules/gdscript/tests/scripts/parser/features/variable_declaration.out
@@ -1,7 +1,3 @@
GDTEST_OK
->> WARNING
->> Line: 5
->> UNASSIGNED_VARIABLE
->> The variable 'c' was used but never assigned a value.
-1 42 2 23
+11 22 33 44 55 66 77 88
OK