summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-22 13:21:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-22 13:21:18 +0000
commite7606de949fdae93ae51feed80a128511d66a9d3 (patch)
treed9d9400ee12bbc9250116f753361e16c26caf419 /parse.y
parentffb49a7e9b8ed9cc130508ff4306dd1c0a38e6c8 (diff)
parse.y: primary should not be 0
* parse.y (primary): should not be 0, since it can be a receiver. [ruby-core:82447] [Bug #13836] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 26763e9a00..14b5e9e3e9 100644
--- a/parse.y
+++ b/parse.y
@@ -2487,7 +2487,7 @@ primary : literal
| tLPAREN_ARG {SET_LEX_STATE(EXPR_ENDARG);} rparen
{
/*%%%*/
- $$ = 0;
+ $$ = NEW_BEGIN(0);
/*%
$$ = dispatch1(paren, 0);
%*/