Actions
Bug #22706
openparse.y: `o[5, *[**{}]] = 8` spuriously rejected as `keyword arg given in index assignment`
Bug #22706:
parse.y: `o[5, *[**{}]] = 8` spuriously rejected as `keyword arg given in index assignment`
Description
Differential fuzzing against prism.
o = Object.new
def o.[]=(*args); p args; end
o[5, *[**{}]] = 8 # => [5, 8]
o[5, *[**{a: 1}]] = 8 # => [5, {a: 1}, 8]
parse.y:
test.rb:4: keyword arg given in index assignment (SyntaxError)
o[5, *[**{}]] = 8 # => [5, 8]
^~~~
test.rb:5: keyword arg given in index assignment
o[5, *[**{a: 1}]] = 8 # => [5, {a: 1}, 8]
^~~~~~~~
prism:
No data to display
Actions