mehanoid (Oleg Grigorev)
- Login: mehanoid
- Registered on: 02/10/2022
- Last sign in: 01/30/2024
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
03/18/2023
-
02:33 PM Ruby Bug #19540 (Rejected): Undefined variable error when combining modifier if with one-line pattern matching
- If I try to use modifier `if` with a one-line pattern matching, the variable assigned by the pattern cannot be used inside the expression to the left of the "if":
```
x if [1] in [x]
(irb):1:in `<main>': undefined local variable or me...