mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Correctly include flex vars in generalization group of rec defs
Rather than resetting the list here, we should append to it! Closes #5344
This commit is contained in:
parent
d13e221678
commit
d4fcd83ba9
3 changed files with 53 additions and 1 deletions
|
@ -3531,7 +3531,7 @@ fn constraint_recursive_function(
|
|||
let expr_con = attach_resolution_constraints(constraints, env, expr_con);
|
||||
let def_con = expr_con;
|
||||
|
||||
flex_info.vars = vec![expr_var];
|
||||
flex_info.vars.push(expr_var);
|
||||
flex_info.constraints.push(def_con);
|
||||
flex_info.def_types.insert(
|
||||
loc_symbol.value,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue