Actions
Bug #13691
closedWord- and symbol array literals not valid where regular array is
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
Description
Not sure if this is a limitation of the design space in the parser, or just a missed edge case. (Note that a regular array literal works fine.)
Steps to reproduce:
Run ruby -c on:
hoge %i(a b) { piyo }
Expected behaviour:
Syntax OK
Actual behaviour:
syntax error, unexpected '{', expecting end-of-input
Actions
Like0
Like0Like0Like0Like0Like0Like0