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 option sumtype auto deref #19919

Merged
merged 3 commits into from Nov 18, 2023

Conversation

felipensp
Copy link
Member

@felipensp felipensp commented Nov 17, 2023

Fix #19917

馃[deprecated] Generated by Copilot at f74c686

Improve C code generation for option types in assignment expressions. Fix generic option detection and add proper casts and field accesses in vlib/v/gen/c/cgen.v.

馃[deprecated] Generated by Copilot at f74c686

  • Handle option types in assignment expressions (link, link, link)

@felipensp felipensp marked this pull request as ready for review November 18, 2023 12:31
Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

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

Good work.

@medvednikov medvednikov merged commit 53e1e5e into vlang:master Nov 18, 2023
54 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.

(only when optional) type checking fails, when the type is an array of a sumtype
3 participants