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

checker: fix missing check for taking address of literal value member #18570

Merged
merged 1 commit into from Jun 27, 2023

Conversation

felipensp
Copy link
Member

@felipensp felipensp commented Jun 26, 2023

Fix #14979

馃 Generated by Copilot at 720f11e

Add a new error check and test case for taking the address of literals. Update the checker module and the vlib/v/checker/tests directory with the relevant files.

馃 Generated by Copilot at 720f11e

  • Add a check for invalid address of operator on literals (link)
  • Add a test case for the new error (link, link)

@felipensp felipensp changed the title checker: fix missing check for wrong & prefix usage checker: fix missing check for taking address of literal value member Jun 26, 2023
@felipensp felipensp marked this pull request as ready for review June 26, 2023 23:24
@medvednikov medvednikov merged commit d523bb0 into vlang:master Jun 27, 2023
50 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.

Compiler bug when returned arg is a pointer using a builtin method
3 participants