os.signal_opt with closure in callback does not compile #21819
Labels
Bug
This tag is applied to issues which reports bugs.
Status: Confirmed
This bug has been confirmed to be valid by a contributor.
Unit: Compiler
Bugs/feature requests, that are related to the V compiler in general.
Unit: Parser
Bugs/feature requests, that are related to the V parser or syntax (*not* semantic ones).
Describe the bug
Calling
os.signal_opt
with closure in callback does not compile stating it is not expecting a comma after the first argument.Reproduction Steps
Expected Behavior
Should compile
Current Behavior
Possible Solution
Changing the code as follows compiles
Additional Information/Context
No response
V version
V 0.4.6 f6de36d
Environment details (OS name and version, etc.)
V full version: V 0.4.6 8215f21.f6de36d
OS: macos, macOS, 14.5, 23F79
Processor: 8 cpus, 64bit, little endian, Apple M2
getwd: /Users/mike/Documents/github/lsv/lsv
vexe: /Users/mike/Documents/github/v/v
vexe mtime: 2024-07-07 15:50:01
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-29-gf6de36db
.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: