summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorSeiei Miyagi <hanachin@gmail.com>2019-04-23 00:01:17 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-04-23 12:16:14 +0900
commitae07b66aaa092c59ac9d544c9b582712290dc357 (patch)
tree1f2c72d2dcb726d2cb35ec5996515c6fc0c5f2dd /parse.y
parentea520ca9273699fc1c77a71bbeba4b6e06ccfc6c (diff)
Fix internal error of `->x:@2{}`
[Fix GH-2139] [Bug #15783]
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 450f1c0ef0..a97c01d69a 100644
--- a/parse.y
+++ b/parse.y
@@ -4799,6 +4799,7 @@ f_label : tLABEL
ID id = get_id($1);
arg_var(p, formal_argument(p, id));
p->cur_arg = id;
+ p->max_numparam = -1;
$$ = $1;
}
;