1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

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
This commit is contained in:
ZuBsPaCe
2021-09-10 22:08:02 +02:00
parent 68563b5760
commit 1d1aa7a02f
3 changed files with 21 additions and 14 deletions

View File

@@ -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