Actions
Bug #21674
openPossible regression in return case in statement
Bug #21674:
Possible regression in return case in statement
Description
Suddenly my code started failing in Ruby 3.4.6 and 3.4.7. Shortest code example:
args = [:increased]
context = Data.define(:event).new(:decreased)
case args
in [event]
context.event in ^event
end
In Ruby prior to 3.4.6 it returns false (as expected) but in 3.4.6 and 3.4.7 it returns :decreased. context.event in ^event still returns false.
Actions