Skip to content

Fix RuntimeError when using multiple hash splat operators#344

Merged
mame merged 1 commit intoruby:masterfrom
mame:fix-343
Oct 31, 2025
Merged

Fix RuntimeError when using multiple hash splat operators#344
mame merged 1 commit intoruby:masterfrom
mame:fix-343

Conversation

@mame
Copy link
Member

@mame mame commented Oct 31, 2025

When multiple hash splat operators expand hashes of the same type, duplicate edges were being added to the same vertex, causing Set#<< to raise an error. This can be avoided by using Vertex#new_vertex.

This fixes #343.

When multiple hash splat operators expand hashes of the same type,
duplicate edges were being added to the same vertex, causing `Set#<<`
to raise an error. This can be avoided by using `Vertex#new_vertex`.

Co-Authored-By: Takumi Shotoku <sinsoku.listy@gmail.com>
@mame mame merged commit 8d796e0 into ruby:master Oct 31, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant