[ruby-core:121531] [Ruby Bug#21215] IRB upto yield self when self is little then end_val
From:
"fitmap (Justin Peal) via ruby-core" <ruby-core@...>
Date:
2025-04-03 02:33:56 UTC
List:
ruby-core #121531
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/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/