Skip to content

Commit

Permalink
Resolve - Fix ordering of if-let match guards
Browse files Browse the repository at this point in the history
  • Loading branch information
thepowersgang committed Jul 16, 2024
1 parent 8c41214 commit 1357dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolve/absolute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2280,12 +2280,12 @@ void Resolve_Absolute_ExprNode(Context& context, ::AST::ExprNode& node)
this->context.end_patbind();

for(auto& cond : arm.m_guard) {
cond.value->visit(*this);
if( cond.opt_pat ) {
this->context.start_patbind();
Resolve_Absolute_Pattern(this->context, true, *cond.opt_pat);
this->context.end_patbind();
}
cond.value->visit(*this);
}
assert( arm.m_code );
arm.m_code->visit( *this );
Expand Down

0 comments on commit 1357dab

Please sign in to comment.