Project

General

Profile

Bug #21674

Updated by jandudulski (Jan Dudulski) about 5 hours ago

Suddenly my code started failing in Ruby 3.4.6 and 3.4.7. Shortest code example: 

 ``` ruby 
 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 in returns `false` (as expected) but in 3.4.6 and 3.4.7 it returns `:decreased`. `context.event in ^event` still returns `false`.

Back