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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cgen: fix auto str for array and map for C struct #22381

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

felipensp
Copy link
Member

@felipensp felipensp commented Oct 1, 2024

@felipensp felipensp marked this pull request as ready for review October 1, 2024 18:40
}
dump(t)
assert t?.a == 123
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put some assertions against the contents of g.str() and t.str() too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(something like assert g.str().contains('a: 100') etc)

@spytheman spytheman merged commit cf2ccbc into vlang:master Oct 2, 2024
78 checks passed
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.

Printing struct with c alias map gives c compiler error: 'indent_struct' undeclared
2 participants