-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
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
C compiler error when unwrapping Optional in an array #23438
Comments
Using latest V,
No failures, nothing else. You need to do |
Ok, I pulled the latest commit but still get the same error:
V doctor:
|
Ah... I missed that it was a test file... renaming to
|
So the bug only happens when the |
Connected to Huly®: V_0.6-21869 |
V version: V 0.4.9 63f5f4a, press to see full `v doctor` output
What did you do?
./v -g -o vdbg cmd/v && ./vdbg src/main_test.v && src/main_test
What did you see?
What did you expect to see?
I expected this code to compile.
cols[0]
is a?string
and it should be unwrapped byif val := col[0]
. I stumbled across this bug while using theRow
type fromdb.pg
library.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: