summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 2a0c5c64f7..d04cf45612 100644
--- a/parse.y
+++ b/parse.y
@@ -4912,6 +4912,10 @@ assocs : assoc
assoc : arg_value tASSOC arg_value
{
/*%%%*/
+ if (nd_type($1) == NODE_STR) {
+ nd_set_type($1, NODE_LIT);
+ $1->nd_lit = rb_fstring($1->nd_lit);
+ }
$$ = list_append(NEW_LIST($1), $3);
/*%
$$ = dispatch2(assoc_new, $1, $3);