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: enhance err msg for unknown types for comptime for #20057

Merged
merged 4 commits into from
Dec 3, 2023

Conversation

Delta456
Copy link
Member

@Delta456 Delta456 commented Dec 1, 2023

Closes #17316

🤖[deprecated] Generated by Copilot at 6bbb83f

Improved comptime error reporting and testing. Fixed the error messages for invalid comptime expressions involving types and fields in vlib/v/checker/comptime.v and updated the corresponding test case in vlib/v/checker/tests/comptime_for.out.

🤖[deprecated] Generated by Copilot at 6bbb83f

  • Improve error messages for comptime expressions with invalid types (link, link)
  • Update test cases to match the improved error messages (link, link, link)

vlib/v/checker/comptime.v Outdated Show resolved Hide resolved
@spytheman
Copy link
Member

The CI failures are unrelated. Good work.

@spytheman spytheman merged commit f9f6ee7 into vlang:master Dec 3, 2023
52 of 54 checks passed
@Delta456 Delta456 deleted the clear_err_msg_comptime_for branch December 3, 2023 10:28
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.

Error "unused variable: foo" when it's used in $for i in foo.methods { ... }
2 participants