diff options
Diffstat (limited to 'test/prism/errors')
| -rw-r--r-- | test/prism/errors/pattern_match_with_unexpected_splat_inside_arraytxt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/prism/errors/pattern_match_with_unexpected_splat_inside_arraytxt b/test/prism/errors/pattern_match_with_unexpected_splat_inside_arraytxt new file mode 100644 index 0000000000..d19491e6bf --- /dev/null +++ b/test/prism/errors/pattern_match_with_unexpected_splat_inside_arraytxt @@ -0,0 +1,14 @@ +a => [-2*b] + ^ expected a `]` to close the pattern expression + ^ unexpected '*', expecting end-of-input + ^ unexpected '*', ignoring it + ^ unexpected ']', expecting end-of-input + ^ unexpected ']', ignoring it + +a => [-2**b] + ^ expected a `]` to close the pattern expression + ^~ unexpected '**', expecting end-of-input + ^~ unexpected '**', ignoring it + ^ unexpected ']', expecting end-of-input + ^ unexpected ']', ignoring it + |
