Commit 598fa1f
Fix RuntimeError when using multiple hash splat operators
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>1 parent 6e046db commit 598fa1f
2 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
384 | | - | |
| 383 | + | |
| 384 | + | |
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments