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

checker: add missing check for ref passing to non-ref #22194

Merged
merged 10 commits into from
Sep 14, 2024

Conversation

felipensp
Copy link
Member

@felipensp felipensp commented Sep 10, 2024

Fix #22178

Before this PR &var was allowed to be passed to non-ptr type argument, it did generate *&var

@felipensp felipensp changed the title checker: add missing checker for ref passing to non-ref checker: add missing check for ref passing to non-ref Sep 10, 2024
@felipensp felipensp marked this pull request as ready for review September 10, 2024 12:08
@felipensp felipensp marked this pull request as draft September 10, 2024 12:08
@felipensp
Copy link
Member Author

felipensp commented Sep 13, 2024

VSL code needs fixing.

@felipensp felipensp marked this pull request as ready for review September 13, 2024 21:40
@felipensp
Copy link
Member Author

VSL pull request vlang/vsl#220

@spytheman spytheman merged commit 4eb087a into vlang:master Sep 14, 2024
78 of 79 checks passed
@felipensp felipensp deleted the fix_ref_to_non_ref branch September 14, 2024 20:14
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.

C error when trying to use a &Struct value where Struct is required instead
2 participants