Skip to content

Pattern matching unexpectedly raises "duplicated key name" error #7657

@enebo

Description

@enebo

From https://bugs.ruby-lang.org/issues/18990

Noticed when updating MRI tests on ruby-3.2.

def test_bug18990
  {a: 0} => a:
  p 0, a
  {a: 0} => a:

end

test_bug18990

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions