Usage of #[]=
assignment in method argument broken
#4323
Labels
Milestone
#[]=
assignment in method argument broken
#4323
Environment
Expected Behavior
The following worked at least until JRuby 9.0.0.0 and works in MRI:
Actual Behavior
At least from JRuby 9.1.5.0 onwards including the above listed JRuby 9.1.6.0 snapshot the following happens:
The difference is in the last line where the string assigned to
x[5]
isn't modified anymore, leading to erroneous behaviour.The text was updated successfully, but these errors were encountered: