Skip to content

Commit

Permalink
Resolve Absolute - Handle let-else (allows refutable)
Browse files Browse the repository at this point in the history
  • Loading branch information
thepowersgang committed Mar 13, 2024
1 parent 7dfb9ea commit 2b80e63
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 @@ -2290,7 +2290,7 @@ void Resolve_Absolute_ExprNode(Context& context, ::AST::ExprNode& node)
AST::NodeVisitorDef::visit(node);
this->context.start_patbind();
auto count = this->context.m_var_count;
Resolve_Absolute_Pattern(this->context, false, node.m_pat);
Resolve_Absolute_Pattern(this->context, node.m_else ? true : false, node.m_pat);
this->context.end_patbind();
auto n_vars = this->context.m_var_count - count;
if( node.m_else ) {
Expand Down

0 comments on commit 2b80e63

Please sign in to comment.