From: "kddnewton (Kevin Newton) via ruby-core" Date: 2026-10-24T00:38:46+00:00 Subject: [ruby-core:127225] [Ruby Bug#22469] parse.y hash key does not warn on -0.0 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/ ______________________________________________ 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/