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: disallow printing variadic values #19503

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

Delta456
Copy link
Member

@Delta456 Delta456 commented Oct 3, 2023

Closes #19490

🤖 Generated by Copilot at 11a06f4

Add a checker error for passing a variadic value to a fixed-arity function. Add a test case for this error using println and an array.

🤖 Generated by Copilot at 11a06f4

  • Add a new error case to the checker for variadic values passed to fixed-arity functions (link)
  • Create a test file variadic_value_print_err.vv with the code that triggers the error (link)
  • Create a test file variadic_value_print_err.out with the expected error message and location (link)

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.

@spytheman spytheman merged commit dd7f3a7 into vlang:master Oct 4, 2023
47 checks passed
@Delta456 Delta456 deleted the disallow_variadic_val_print branch October 4, 2023 06:43
Wertzui123 pushed a commit to Wertzui123/v that referenced this pull request Oct 8, 2023
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 print variadic list
4 participants