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

NoReturn information is not lazy #314

Closed
asterite opened this issue Dec 12, 2014 · 0 comments
Closed

NoReturn information is not lazy #314

asterite opened this issue Dec 12, 2014 · 0 comments
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc.

Comments

@asterite
Copy link
Member

a = 1
b = 1
x = nil

while a < 10
  if a == 2
    b = "hello"
    x.not_nil!
  end

  x = 1
  a += 1
end

puts b

Incorrectly prints garbage instead of "hello".

@asterite asterite added the kind:bug A bug in the code. Does not apply to documentation, specs, etc. label Dec 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc.
Projects
None yet
Development

No branches or pull requests

1 participant