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: extend byte deprecation warning to array init types #19671

Merged
merged 1 commit into from
Oct 29, 2023

Conversation

ttytm
Copy link
Member

@ttytm ttytm commented Oct 26, 2023

Includes a small updated of the related code block as incremental refactor to improve readability and do less variable declarations and as casts.

🤖 Generated by Copilot at 0d1a731

Refactor vlib/v/checker/containers.v to use match and handle byte deprecation. Simplify vlib/x/json2/encoder.v by removing redundant case for []byte.

🤖 Generated by Copilot at 0d1a731

  • Refactor the element symbol check for array types to use a match statement and handle ast.Alias (link)
  • Remove the redundant case for []byte in the JSON encoder match statement (link)

@spytheman spytheman merged commit e86abe0 into vlang:master Oct 29, 2023
@ttytm ttytm deleted the checker/array-init-byte-dep-warn branch November 1, 2023 19:47
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.

2 participants