Skip to content

checker: comptime match only eval true branch#25225

Merged
spytheman merged 2 commits into
vlang:masterfrom
kbkpbot:fix-comptime-match-eval-only-true-branch
Sep 4, 2025
Merged

checker: comptime match only eval true branch#25225
spytheman merged 2 commits into
vlang:masterfrom
kbkpbot:fix-comptime-match-eval-only-true-branch

Conversation

@kbkpbot

@kbkpbot kbkpbot commented Sep 3, 2025

Copy link
Copy Markdown
Contributor

Fix issue #25223

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-24635

@kbkpbot kbkpbot marked this pull request as draft September 3, 2025 00:12
@kbkpbot kbkpbot marked this pull request as ready for review September 3, 2025 00:24

@spytheman spytheman Sep 4, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that there should be a test .vv/.out pair in vlib/v/checker/tests/, similar to this test, but that forces the branch for $compile_error too, and thus ensures that the error message is shown for that situation.

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work.

@spytheman spytheman merged commit e15d8fc into vlang:master Sep 4, 2025
85 of 86 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.

2 participants