We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
interface Param {} const some_strings = ['one', 'two', 'three'] fn test(params ...Param) { param := params[0] match param { string { if param in some_strings { println('in some_strings') } } else { panic('oops') } } } fn main() { test('three') }
v run code above
no cgen error
cgen error
No response
`
V full version: V 0.4.2 95509cf.c09b66b OS: linux, Linux version 5.14.0-284.30.1.el9_2.x86_64 (mockbuild@mj.euro.kojibuilder106) (gcc (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4), GNU ld version 2.35.2-37.el9) #1 SMP PREEMPT_DYNAMIC Fri Sep 15 08:06:33 UTC 2023 Processor: 8 cpus, 64bit, little endian, Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz getwd: /home/coachonko/Documents/projects/vlang/notes vexe: /home/coachonko/.local/lib64/v/v vexe mtime: 2023-10-26 10:41:25 vroot: OK, value: /home/coachonko/.local/lib64/v VMODULES: OK, value: /home/coachonko/.vmodules VTMP: OK, value: /tmp/v_1000 Git version: git version 2.39.3 Git vroot status: weekly.2023.43-24-gc09b66b0 .git/config present: true CC version: cc (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4) thirdparty/tcc status: thirdparty-linux-amd64 12f392c3
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:
Bugged github
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Reproduction Steps
v run code above
Expected Behavior
no cgen error
Current Behavior
cgen error
Possible Solution
No response
Additional Information/Context
No response
V version
`
Environment details (OS name and version, etc.)
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: