intel / rohd

The Rapid Open Hardware Development (ROHD) framework is a framework for describing and verifying hardware in the Dart programming language.
https://intel.github.io/rohd-website
BSD 3-Clause "New" or "Revised" License
374 stars 67 forks source link

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

Closed mkorbel1 closed 1 year ago

mkorbel1 commented 1 year ago

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.