h = {}.compare_by_identity
a = [0]
h[a] = 42
a[0] = 1
p h[a] #=> expected: 42, actual: nil
MRI works as I expect. I confirmed this in jruby 9.0.5.0 (2.2.3) 2016-01-26 7bee00d OpenJDK 64-Bit Server VM 24.95-b01 on 1.7.0_95-b00 +jit [linux-amd64].
The text was updated successfully, but these errors were encountered:
kares
added a commit
to kares/jruby
that referenced
this issue
Feb 18, 2016
Hello,
MRI works as I expect. I confirmed this in
jruby 9.0.5.0 (2.2.3) 2016-01-26 7bee00d OpenJDK 64-Bit Server VM 24.95-b01 on 1.7.0_95-b00 +jit [linux-amd64]
.The text was updated successfully, but these errors were encountered: