Skip to content

fixes #22122; raise effects for complex expressions#25845

Open
ringabout wants to merge 1 commit into
develfrom
pr_mj
Open

fixes #22122; raise effects for complex expressions#25845
ringabout wants to merge 1 commit into
develfrom
pr_mj

Conversation

@ringabout
Copy link
Copy Markdown
Member

@ringabout ringabout commented May 29, 2026

fixes #22122

The root cause is in the effect tracker: raise was recording the whole conditional expression as one exception source, so semantic checking only saw the widened common base type instead of the concrete exception classes from each branch.

Copilot AI review requested due to automatic review settings May 29, 2026 15:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@Araq Araq closed this May 29, 2026
@Araq Araq reopened this May 29, 2026
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.

Unclear error message for raise of a complex expression

3 participants