C error when trying to init fixed size array. #19467
Labels
Bug
This tag is applied to issues which reports bugs.
Build
V build error on any OS/CPU architecture.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
Describe the bug
A C error is generated when you try to create a fixed size array with
[2]int{init: [5, 10]}
syntax. (I see now after looking at the docs that you're supposed to use[5, 10]!
)Reproduction Steps
Expected Behavior
Expected a V error pointing me to
[0, 1, ...]!
syntax instead.Current Behavior
Possible Solution
No response
Additional Information/Context
No response
V version
V full version: V 0.4.1 68cbf27.b5f71df
Environment details (OS name and version, etc.)
Note
You can vote for this issue using the 👍 reaction. More votes increase the issue's priority for developers.
Take into account that only the 👍 reaction counts as a vote.
Only reactions to the issue itself will be counted as votes, not comments.
The text was updated successfully, but these errors were encountered: