You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when constructing the ASG, the final representation of the OQ3 program, we erroneously assume that the for statement loops over a block and never over a single statement:
Version 0.4.0
These methods look for either a single statement or a body. If the body is not found, it should return
None
.openqasm3_parser/crates/oq3_syntax/src/ast/generated/nodes.rs
Lines 270 to 275 in 22b55cc
But when constructing the ASG, the final representation of the OQ3 program, we erroneously assume that the for statement loops over a block and never over a single statement:
openqasm3_parser/crates/oq3_semantics/src/syntax_to_semantics.rs
Line 245 in 22b55cc
In case there is no block, the
unwrap
causes apanic
.The text was updated successfully, but these errors were encountered: