Project

General

Profile

Actions

Bug #22469

open

parse.y hash key does not warn on -0.0

Bug #22469: parse.y hash key does not warn on -0.0

Added by kddnewton (Kevin Newton) about 9 hours ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:127225]

Description

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

No data to display

Actions

Also available in: PDF Atom