summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorShugo Maeda <shugo@ruby-lang.org>2022-12-15 15:12:33 +0900
committerShugo Maeda <shugo.maeda@gmail.com>2022-12-15 18:56:24 +0900
commit2581de112c1957dc4b5852e54337551dc8972c99 (patch)
treed276a3734bf323ab95ff5abab293935a05714033 /compile.c
parent613fca01486e47dee9364a2fd86b5f5e77fe23c8 (diff)
downloadruby-2581de112c1957dc4b5852e54337551dc8972c99.tar.gz
Disallow mixed usage of ... and */**
[Feature #19134]
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 8f53955e74..f252339ee5 100644
--- a/compile.c
+++ b/compile.c
@@ -1832,6 +1832,7 @@ iseq_set_arguments(rb_iseq_t *iseq, LINK_ANCHOR *const optargs, const NODE *cons
EXPECT_NODE("iseq_set_arguments", node_args, NODE_ARGS, COMPILE_NG);
+ body->param.flags.ruby2_keywords = args->ruby2_keywords;
body->param.lead_num = arg_size = (int)args->pre_args_num;
if (body->param.lead_num > 0) body->param.flags.has_lead = TRUE;
debugs(" - argc: %d\n", body->param.lead_num);