summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-compiler/core
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-08-17 17:21:56 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 16:21:42 +0900
commit424afa4446b78e918c11b644451d3f25217084c5 (patch)
treef1ae12e517fa0fe634b02eadb65b30664baf1f25 /mrbgems/mruby-compiler/core
parent02e69d1c2cce62850ecbd0ca0e8af564286cc55c (diff)
downloadmruby-424afa4446b78e918c11b644451d3f25217084c5.tar.gz
mruby-424afa4446b78e918c11b644451d3f25217084c5.zip
Make `Proc#parameters` to support keyword arguments; fix #5066
TODO: Unlike CRuby, mruby's `Proc#parameters` does not distinguish required keyword arguments and optional keyword arguments currently.
Diffstat (limited to 'mrbgems/mruby-compiler/core')
-rw-r--r--mrbgems/mruby-compiler/core/parse.y2
-rw-r--r--mrbgems/mruby-compiler/core/y.tab.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y
index 8e3087a2a..b2bf8263f 100644
--- a/mrbgems/mruby-compiler/core/parse.y
+++ b/mrbgems/mruby-compiler/core/parse.y
@@ -3791,7 +3791,7 @@ f_rest_arg : restarg_mark tIDENTIFIER
}
| restarg_mark
{
- local_add_f(p, MRB_QSYM(and));
+ local_add_f(p, MRB_QSYM(mul));
$$ = -1;
}
;
diff --git a/mrbgems/mruby-compiler/core/y.tab.c b/mrbgems/mruby-compiler/core/y.tab.c
index 48173933f..28a06472f 100644
--- a/mrbgems/mruby-compiler/core/y.tab.c
+++ b/mrbgems/mruby-compiler/core/y.tab.c
@@ -9442,7 +9442,7 @@ yyreduce:
case 554:
#line 3793 "mrbgems/mruby-compiler/core/parse.y"
{
- local_add_f(p, MRB_QSYM(and));
+ local_add_f(p, MRB_QSYM(mul));
(yyval.id) = -1;
}
#line 9449 "mrbgems/mruby-compiler/core/y.tab.c"