Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher committed May 9, 2024
1 parent e28c297 commit 96bfe72
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions compiler/noirc_frontend/src/hir_def/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -806,10 +806,13 @@ impl Type {
}

Type::Array(length, element) => {
length.is_valid_for_unconstrained_boundary() && element.is_valid_for_unconstrained_boundary()
length.is_valid_for_unconstrained_boundary()
&& element.is_valid_for_unconstrained_boundary()
}
Type::String(length) => length.is_valid_for_unconstrained_boundary(),
Type::Tuple(elements) => elements.iter().all(|elem| elem.is_valid_for_unconstrained_boundary()),
Type::Tuple(elements) => {
elements.iter().all(|elem| elem.is_valid_for_unconstrained_boundary())
}
Type::Struct(definition, generics) => definition
.borrow()
.get_fields(generics)
Expand Down

0 comments on commit 96bfe72

Please sign in to comment.