diff --git a/parser/prism/Translator.cc b/parser/prism/Translator.cc index 3f4c216147d..7ea49e37556 100644 --- a/parser/prism/Translator.cc +++ b/parser/prism/Translator.cc @@ -697,8 +697,8 @@ unique_ptr Translator::translate(pm_node_t *node) { return translate(implicitNode->value); } case PM_IMPLICIT_REST_NODE: { // An implicit splat, like the `,` in `a, = 1, 2, 3` - unreachable("PM_IMPLICIT_REST_NODE is handled separately as part of PM_MULTI_WRITE_NODE and " - "PM_MULTI_TARGET_NODE, see their implementations for details."); + auto restLoc = core::LocOffsets{location.beginLoc + 1, location.beginLoc + 1}; + return make_unique(restLoc, core::Names::restargs(), restLoc); } case PM_INDEX_AND_WRITE_NODE: { // And-assignment to an index, e.g. `a[i] &&= false` return translateOpAssignment(node);