[#105450] [Ruby master Feature#18228] Add a `timeout` option to `IO.copy_stream` — "byroot (Jean Boussier)" <noreply@...>
Issue #18228 has been reported by byroot (Jean Boussier).
11 messages
2021/09/27
[ruby-core:105496] [Ruby master Bug#18180] opt_newarray_min/max instructions ignore refined methods
From:
"jeremyevans0 (Jeremy Evans)" <noreply@...>
Date:
2021-09-29 22:57:41 UTC
List:
ruby-core #105496
Issue #18180 has been updated by jeremyevans0 (Jeremy Evans). I submitted a pull request to fix this issue: https://github.com/ruby/ruby/pull/4911 ---------------------------------------- Bug #18180: opt_newarray_min/max instructions ignore refined methods https://bugs.ruby-lang.org/issues/18180#change-93946 * Author: wanabe (_ wanabe) * Status: Open * Priority: Normal * ruby -v: ruby 3.1.0dev (2021-09-20T10:07:58Z master cb8434563d) [x86_64-linux] * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- ``` $ ./miniruby -ve 'module M; refine Array do; def max; :max; end; def min; :min; end; end; end; using M; p [1 + 0, 2, 3].max, [1 + 0, 2, 3].min' ruby 3.1.0dev (2021-09-20T10:07:58Z master cb8434563d) [x86_64-linux] 3 1 ``` I expected :max and :min to be returned. If I avoid the opt_newarray_min/max instruction, the behavior will be as expected. ``` $ ./miniruby -ve 'module M; refine Array do; def max; :max; end; def min; :min; end; end; end; using M; p [1, 2, 3].max, [1, 2, 3].min' ruby 3.1.0dev (2021-09-20T10:07:58Z master cb8434563d) [x86_64-linux] :max :min ``` -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>