We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This works,
cond = Conditional(tys.Either([tys.USize()], [tys.Unit]), []) with cond.add_case(0) as case: case.set_outputs() with cond.add_case(1) as case: case.set_outputs()
but this fails validation:
cond = Conditional(tys.Either([tys.USize()], [tys.Unit]), []) with cond.add_case(1) as case: case.set_outputs() with cond.add_case(0) as case: case.set_outputs()
The text was updated successfully, but these errors were encountered:
fix(py): allow conditional cases to be defined out of order
249a6c0
Closes #1596 Was tempted to just change the type of `cases` since who would be using it anyway but I've tried to be good and deprecate instead
794034b
a15a89e
ss2165
Successfully merging a pull request may close this issue.
This works,
but this fails validation:
The text was updated successfully, but these errors were encountered: