Skip to content

Commit

Permalink
Update resolver.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray committed Dec 10, 2023
1 parent c043265 commit fe37a08
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compiler/noirc_frontend/src/hir/resolution/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1662,10 +1662,7 @@ impl<'a> Resolver<'a> {
fn eval_global_as_array_length(&mut self, global: StmtId) -> u64 {
let stmt = match self.interner.statement(&global) {
HirStatement::Let(let_expr) => let_expr,
other => {
dbg!(other);
return 0;
}
_ => return 0,
};

let length = stmt.expression;
Expand Down

0 comments on commit fe37a08

Please sign in to comment.