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

Disable contextual typing with bool #501

Merged
merged 1 commit into from
Mar 7, 2022
Merged

Disable contextual typing with bool #501

merged 1 commit into from
Mar 7, 2022

Conversation

soutaro
Copy link
Owner

@soutaro soutaro commented Mar 7, 2022

Narrowing bool type to false (or true) causes problem when updating flags inside loops.

flag = true

while flag
  if something
    flag = false       # Reporting error here doesn't make any sense.
  end
end 

@soutaro soutaro merged commit 46f1323 into master Mar 7, 2022
@soutaro soutaro deleted the context-typing-bool branch March 7, 2022 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant