diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-05-04 21:43:22 -0700 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-05 15:33:10 +0900 |
commit | 0c0ed1cee8aa8c538cc81f0daef26737eb2d5d0d (patch) | |
tree | bbfdc10c8f99c4740c78d9c0994e0c353d983816 /parse.y | |
parent | b8f3be295b694964e88960c0228459b8aadd114a (diff) | |
download | ruby-0c0ed1cee8aa8c538cc81f0daef26737eb2d5d0d.tar.gz |
Fix use of numbered parameter inside proc that is default value of optarg
This allows cases such as:
```ruby
m ->(a = ->{@1}) {a}
m.call.call(1)
m2 ->(a: ->{@1}) {a}
m2.call.call(2)
```
Previously, this would cause a syntax error.
[Bug#15789]
Diffstat (limited to 'parse.y')
0 files changed, 0 insertions, 0 deletions