ruby/test/prism/errors/command_calls_33.txt
Earlopain 3c7a89721d [ruby/prism] Reject 1 if foo = bar baz
and also `1 and foo = bar baz`

This is a partial fix for https://github.com/ruby/prism/issues/3106
It still accepts `a = b c and 1`

https://github.com/ruby/prism/commit/7a13d3535b
2025-09-17 16:39:27 +00:00

7 lines
200 B
Plaintext

1 if foo = bar baz
^~~ unexpected local variable or method, expecting end-of-input
1 and foo = bar baz
^~~ unexpected local variable or method, expecting end-of-input