Skip to content

Commit

Permalink
Update compiler/noirc_frontend/src/hir/type_check/expr.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Jun 3, 2024
1 parent 46c19cc commit 37e6a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/noirc_frontend/src/hir/type_check/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ impl<'interner> TypeChecker<'interner> {
// Check that we are not passing a mutable reference from a constrained runtime to an unconstrained runtime
if is_current_func_constrained && is_unconstrained_call {
for (typ, _, _) in args.iter() {
if typ.is_valid_for_unconstrained_boundary() {
if !typ.is_valid_for_unconstrained_boundary() {
self.errors.push(TypeCheckError::ConstrainedReferenceToUnconstrained { span });
}
}
Expand Down

0 comments on commit 37e6a8a

Please sign in to comment.