You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inherited variables are copied when the anonymous function is created. This means that if the original variable is modified after the creation of the function, the modification won't be reflected in the function.
If you need the value to be modified outside the function, use a reference.
Describe the bug
Maybe I'm misunderstanding something here but I think this test should pass.
Reproduction Steps
Expected Behavior
lines
should equal['msg']
Current Behavior
lines
is emptyPossible Solution
No response
Additional Information/Context
No response
V version
V 0.4.6 65966ae
Environment details (OS name and version, etc.)
V full version: V 0.4.6 8215f21.65966ae
OS: macos, macOS, 14.5, 23F79
Processor: 8 cpus, 64bit, little endian, Apple M2
getwd: /Users/mike/Documents/github/coreutils/src/paste
vexe: /Users/mike/Documents/github/v/v
vexe mtime: 2024-07-10 12:48:46
vroot: OK, value: /Users/mike/Documents/github/v
VMODULES: OK, value: /Users/mike/.vmodules
VTMP: OK, value: /tmp/v_501
Git version: git version 2.45.2
Git vroot status: weekly.2024.27-41-g65966aef
.git/config present: true
CC version: Apple clang version 15.0.0 (clang-1500.3.9.4)
thirdparty/tcc status: thirdparty-macos-arm64 5c1d002f
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: