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

Fix #382, if block exceptions when else is wrong #383

Merged
merged 3 commits into from
Jun 13, 2023

Conversation

mkorbel1
Copy link
Contributor

Description & Motivation

Fixes a set of bugs where Ifs can be constructed in an illegal way without an Exception being thrown.

Related Issue(s)

Fix #382

Testing

Added tests for different wrong usages of Else in an If.block.

Backwards-compatibility

Is this a breaking change that will not be backwards-compatible? If yes, how so?

No

Documentation

Does the change require any updates to documentation? If so, where? Are they included?

Updated doc comment clarifying requirements.

@mkorbel1 mkorbel1 merged commit 47d4a93 into intel:main Jun 13, 2023
@mkorbel1 mkorbel1 deleted the elseonly branch June 13, 2023 23:50
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.

An If.block with only one Else in it does not flag an error
1 participant