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:
parent
68563b5760
commit
1d1aa7a02f
3 changed files with 21 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue