Skip to content

support peer type resolution in loops - #3338

Merged
techatrix merged 5 commits into
zigtools:masterfrom
mooori:loop-type-resolution
Dec 4, 2026
Merged

techatrix merged 5 commits into
zigtools:masterfrom
mooori:loop-type-resolution

Conversation

@mooori

@mooori mooori commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Addresses this TODO in type resolution of for and while loops:

// TODO: peer type resolution based on `else` and all `break` statements

Closes #3272

@mooori
mooori marked this pull request as ready for review November 23, 2026 18:34
Comment thread src/analysis.zig Resolved
Comment thread src/analysis.zig Resolved
@mooori
mooori requested a review from techatrix December 4, 2026 11:56

@techatrix techatrix left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you

@techatrix
techatrix merged commit 3f560ac into zigtools:master Dec 4, 2026
6 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.

for with break wrongly typed as noreturn

2 participants