Skip to content

Commit

Permalink
Comment in leaf.rs re. Tag - could take some TypeRow<true>s
Browse files Browse the repository at this point in the history
  • Loading branch information
acl-cqc committed May 26, 2024
1 parent 2fa7feb commit 825e911
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hugr/src/ops/leaf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ pub struct Tag {
/// The variant to create.
pub tag: usize,
/// The variants of the sum type.
/// TODO this allows *none* of the variants to contain row variables, but
/// we could allow variants *other than the tagged one* to contain rowvars.
pub variants: Vec<TypeRow>,
}

Expand Down

0 comments on commit 825e911

Please sign in to comment.