mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Merge pull request #5363 from roc-lang/i5344
Correctly include flex vars in generalization group of rec defs
This commit is contained in:
commit
4824de5192
5 changed files with 36 additions and 1 deletions
|
@ -3594,7 +3594,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