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 lambda initialization on option struct field #19995

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

felipensp
Copy link
Member

@felipensp felipensp commented Nov 25, 2023

Fix #19474

🤖[deprecated] Generated by Copilot at 1d54d18

Fix a segfault bug when using anon functions as optional struct fields. Add a test case in anon_fn_option_test.v to verify the fix.

🤖[deprecated] Generated by Copilot at 1d54d18

  • Fix a bug that caused a segmentation fault when using anonymous functions as optional struct fields (link)
  • Add a test case for the bug fix in vlib/v/tests/anon_fn_option_test.v (link)

@felipensp felipensp marked this pull request as ready for review November 25, 2023 15:44
@spytheman
Copy link
Member

(rebased over current master)

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.

Excellent work.

@spytheman spytheman merged commit 8ba04d3 into vlang:master Nov 27, 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.

lambdas not working for option anonymous function struct field
2 participants