You've already forked godot
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user