
3 Apr
2025
3 Apr
'25
3:33 a.m.
Issue #21215 has been reported by fitmap (Justin Peal). ---------------------------------------- Bug #21215: IRB upto yield self when self is little then end_val https://bugs.ruby-lang.org/issues/21215 * Author: fitmap (Justin Peal) * Status: Open * ruby -v: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x64-mingw-ucrt] * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- irb(main):001:0> 1.upto(0) { |k| p k } => 1 1 irb(main):002:0> 0.downto(1) { |k| p k } => 0 0 Save these statements to script and run the script, no output. -- https://bugs.ruby-lang.org/