Skip to content

Conversation

@zhassan-aws
Copy link
Contributor

Description of changes:

PR #1561 introduced a bug that caused an error if an assert is used in a match arm. This PR fixes this bug through wrapping the assert definition in double braces to introduce an extra scope to allow using an if block in the macro definition.

Resolved issues:

Resolves #1572

Call-outs:

Testing:

  • How is this change tested? Added one test

  • Is this a refactor change? No

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@zhassan-aws zhassan-aws requested a review from a team as a code owner August 22, 2022 21:48
@tedinski tedinski merged commit e1a1fe1 into model-checking:main Aug 23, 2022
@zhassan-aws zhassan-aws deleted the iss-1572 branch August 23, 2022 16:16
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.

Error when using assert in a match arm

2 participants