From: normalperson@... Date: 2015-12-07T23:54:06+00:00 Subject: [ruby-core:71920] [Ruby trunk - Bug #11784] [Open] [PATCH] insns.def (opt_case_dispatch): check Float#=== redefinition Issue #11784 has been reported by Eric Wong. ---------------------------------------- Bug #11784: [PATCH] insns.def (opt_case_dispatch): check Float#=== redefinition https://bugs.ruby-lang.org/issues/11784 * Author: Eric Wong * Status: Open * Priority: Normal * Assignee: Eric Wong * ruby -v: * Backport: 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED ---------------------------------------- insns.def (opt_case_dispatch): check Float#=== redefinition The missing check for Float#=== redefinition was noticed while working on enhancing optimized case dispatch for nil/true/false in [ruby-core:71818] https://bugs.ruby-lang.org/issues/11769 So no, I don't normally redefine core classes like this :P * insns.def (opt_case_dispatch): check Float#=== redefinition * test/ruby/test_optimization.rb (test_opt_case_dispatch): new ---Files-------------------------------- 0001-insns.def-opt_case_dispatch-check-Float-redefinition.patch (2.38 KB) -- https://bugs.ruby-lang.org/