Skip to content

38 featdiag add duplicate else if condition diagnostic ir level tests#39

Merged
SizzleUnrlsd merged 10 commits intomainfrom
38-featdiag-add-duplicate-else-if-condition-diagnostic-ir-level-tests
Feb 8, 2026
Merged

38 featdiag add duplicate else if condition diagnostic ir level tests#39
SizzleUnrlsd merged 10 commits intomainfrom
38-featdiag-add-duplicate-else-if-condition-diagnostic-ir-level-tests

Conversation

@SizzleUnrlsd
Copy link
Contributor

We implemented a new diagnostic to detect unreachable else if branches where the condition is equivalent to a previous if condition. This helps surface dead branches caused by duplicated or redundant conditions in control-flow chains, including nested and looped contexts.

@SizzleUnrlsd SizzleUnrlsd self-assigned this Feb 8, 2026
@SizzleUnrlsd SizzleUnrlsd merged commit 3aedfb3 into main Feb 8, 2026
4 checks passed
@SizzleUnrlsd SizzleUnrlsd deleted the 38-featdiag-add-duplicate-else-if-condition-diagnostic-ir-level-tests branch February 8, 2026 14:05
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.

feat(diag): add duplicate else-if condition diagnostic (IR-level) + tests

1 participant