Commit ed96da8
committed
Follow fix for method call with
This PR is a followup to #3558 and fixes the following cases, which
should throw a syntax error but were not:
```ruby
A.print message: in 'BAR'
A.print message:
in 'BAR'
```
To fix this we check for methods calls with arguments and no parens that
then call `in`.
Note I had claude write this because I wasn't sure where the problem
was but then edited it to remove extra unnecessary code the robot wrote.in bug1 parent cd91afe commit ed96da8
2 files changed
+21
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22343 | 22343 | | |
22344 | 22344 | | |
22345 | 22345 | | |
22346 | | - | |
| 22346 | + | |
22347 | 22347 | | |
22348 | 22348 | | |
22349 | 22349 | | |
22350 | 22350 | | |
22351 | 22351 | | |
22352 | 22352 | | |
| 22353 | + | |
| 22354 | + | |
| 22355 | + | |
| 22356 | + | |
| 22357 | + | |
| 22358 | + | |
22353 | 22359 | | |
| 22360 | + | |
22354 | 22361 | | |
22355 | 22362 | | |
22356 | 22363 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
5 | 18 | | |
0 commit comments