mirror of
https://github.com/ruby/ruby.git
synced 2026-01-28 04:54:23 +00:00
https://bugs.ruby-lang.org/issues/21168#note-5 The added code samples align with `parse.y`, except for `foo(bar baz do end)` which `parse.y` currently rejects but shouldn't. https://github.com/ruby/prism/commit/3a4e102d80
11 lines
208 B
Plaintext
11 lines
208 B
Plaintext
[a b]
|
|
^ unexpected local variable or method; expected a `,` separator for the array elements
|
|
|
|
|
|
[
|
|
a b do
|
|
^ unexpected local variable or method; expected a `,` separator for the array elements
|
|
end,
|
|
]
|
|
|