[Bug #20974] _ 付きの仮引数がある時の Proc#parameters のバグ報告

2024/11/29に公開

[Bug #20974] Required and optional anonymous parameter show differently in Proc#parameters

  • 以下のように _ 付きの仮引数がある時に Proc#parametersproclambda で名前が異なっているというバグ報告
p(proc   { |(_a)| }.parameters) # => [[:opt, nil]]
p(lambda { |(_a)| }.parameters) # => [[:req]]
GitHubで編集を提案

Discussion