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

Incorrect case evaluation when evaluating variable with value of [] #3966

Closed
ckpeter opened this issue Jun 14, 2016 · 0 comments
Closed

Incorrect case evaluation when evaluating variable with value of [] #3966

ckpeter opened this issue Jun 14, 2016 · 0 comments
Labels
ir
Milestone

Comments

@ckpeter
Copy link

@ckpeter ckpeter commented Jun 14, 2016

Environment

jruby 9.1.2.0 (2.3.0) 2016-05-26 7357c8f Java HotSpot(TM) Client VM 25.92-b14 on 1.8.0_92-b14 +jit [mswin32-x86]

Expected Behavior

When running this snippet:

var = []

case
  when var
    puts 1
  else
    puts 2
end

MRI 2.2.3 prints 1.

Actual Behavior

JRuby 9.1.2 prints 2.

@enebo enebo added this to the JRuby 9.1.3.0 milestone Jun 14, 2016
@enebo enebo added the ir label Jun 14, 2016
@enebo enebo closed this in cf4145c Jun 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.