cgen error when trying to thread.wait()
on an unset thread field of struct
#23390
Labels
Bug
This tag is applied to issues which reports bugs.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
V version: V 0.4.9 738f847, press to see full `v doctor` output
What did you do?
./v -g -o vdbg cmd/v && ./vdbg /Users/adamoates/Documents/test.v && /Users/adamoates/Documents/test
What did you see?
What did you expect to see?
Expected code to compile and when ran just skip right over
client.network_thead.wait()
since the thread has not been set. V would normally guard against this by not allowing you to set variables of uninitialized threads (i.e. nomut t := thread{}
). It does not, however, check struct fields the same way.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: