Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting variable inside loop after it is read is declared as unused #67

Closed
triwav opened this issue May 9, 2022 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@triwav
Copy link

triwav commented May 9, 2022

Take the example

myValue = initialValue
while true
  if myValue = invalid
    exit while
  else if otherStuff
  end if

  myValue = getValue()
end while

the line myValue = getValue() will be declared as unused when it will be used during the next loop.

@elsassph elsassph added the bug Something isn't working label Oct 4, 2022
@elsassph
Copy link
Collaborator

elsassph commented Oct 4, 2022

Right, we have the same problem with goto loops.

@elsassph
Copy link
Collaborator

elsassph commented Oct 4, 2022

duplicate of #66

@elsassph elsassph closed this as completed Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants