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 Feb 9, 2024
1 parent 07b1a45 commit ec82ec1
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 @@ -156,7 +156,7 @@ impl<'interner> TypeChecker<'interner> {
let current_func = self.current_function;
let func_mod = current_func.map(|func| self.interner.function_modifiers(&func));
let is_current_func_constrained =
func_mod.map_or(false, |func_mod| !func_mod.is_unconstrained);
func_mod.map_or(true, |func_mod| !func_mod.is_unconstrained);
let is_unconstrained_call = self.is_unconstrained_call(&call_expr.func);

self.check_if_deprecated(&call_expr.func);
Expand Down

0 comments on commit ec82ec1

Please sign in to comment.