Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

cgen: fix fixed array of map type #18347

Merged
merged 1 commit into from Jun 5, 2023

Conversation

felipensp
Copy link
Member

@felipensp felipensp commented Jun 4, 2023

Fix #18342

馃 Generated by Copilot at 5920e41

This pull request adds support for fixed arrays of maps in the V language. It modifies the checker.v and array.v files to handle the type checking and code generation for this feature, and adds a test file fixed_array_map_test.v to verify its functionality.

馃 Generated by Copilot at 5920e41

  • Add support for fixed arrays of maps in the checker and the C backend (link, link)
  • Check if the type symbol of a variable is a fixed array and register it in the table (checker.v, link)
  • Generate C code for initializing each map element of a fixed array with an empty map (array.v, link)
  • Add a test function for fixed arrays of maps (fixed_array_map_test.v, link)

@felipensp felipensp marked this pull request as ready for review June 4, 2023 19:31
@medvednikov medvednikov merged commit d3c679b into vlang:master Jun 5, 2023
50 checks passed
l1mey112 pushed a commit to l1mey112/v that referenced this pull request Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Runtime error when writing to map inside fixed array
3 participants