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

anon struct not being created as option #23789

Closed
vodish opened this issue Feb 22, 2025 · 1 comment · Fixed by #23830
Closed

anon struct not being created as option #23789

vodish opened this issue Feb 22, 2025 · 1 comment · Fixed by #23830
Assignees
Labels
Bug This tag is applied to issues which reports bugs. Status: Confirmed This bug has been confirmed to be valid by a contributor. Unit: cgen Bugs/feature requests, that are related to the default C generating backend. Unit: Parser Bugs/feature requests, that are related to the V parser or syntax (*not* semantic ones).

Comments

@vodish
Copy link

vodish commented Feb 22, 2025

Image

playground

https://play.vlang.io/p/27c35bcdd7

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.

Copy link

Connected to Huly®: V_0.6-22200

@felipensp felipensp changed the title struct optional field with embeded struct anon struct not being created as option Feb 22, 2025
@felipensp felipensp added Bug This tag is applied to issues which reports bugs. Status: Confirmed This bug has been confirmed to be valid by a contributor. labels Feb 22, 2025
@felipensp felipensp self-assigned this Feb 28, 2025
@felipensp felipensp added Unit: Parser Bugs/feature requests, that are related to the V parser or syntax (*not* semantic ones). Unit: cgen Bugs/feature requests, that are related to the default C generating backend. labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs. Status: Confirmed This bug has been confirmed to be valid by a contributor. Unit: cgen Bugs/feature requests, that are related to the default C generating backend. Unit: Parser Bugs/feature requests, that are related to the V parser or syntax (*not* semantic ones).
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants