Closed gohierf closed 3 weeks ago
On a similar topic, I get "variable not used" for counter in this case:
*** Test Cases ***
My Test
VAR ${counter} ${0}
WHILE True limit=2s
Log To Console ${counter}
VAR ${counter} ${counter+1}
END
Describe the bug A variable is considered not used if defined with VAR statement in both IF and ELSE clause.
To Reproduce Steps to reproduce the behavior:
If possible, add some example source code like:
Expected behavior No warning.
Screenshots/ Videos
Logs NA
Desktop (please complete the following information):
Additional context I get a warning if the same variable is defined in an ELSE IF bloc.
I get the same warning if the variable is used in a keyword rather than RETURN statement.