24 Oct
2026
24 Oct
'26
1:38 a.m.
Issue #22469 has been reported by kddnewton (Kevin Newton). ---------------------------------------- Bug #22469: parse.y hash key does not warn on -0.0 https://bugs.ruby-lang.org/issues/22469 * Author: kddnewton (Kevin Newton) * Status: Open * Backport: 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN ---------------------------------------- When generating warnings for duplicate keys (hash keys or case-when clauses) parse.y misses warning on -0.0 and 0.0 because it doesn't normalize it like a Ruby hash does. ``` { 0.0 => 1, -0.0 => 1 } ``` ^-- should warn -- https://bugs.ruby-lang.org/