Merge pull request #5363 from roc-lang/i5344

Correctly include flex vars in generalization group of rec defs
This commit is contained in:
Ayaz 2023-05-02 16:44:29 -05:00 committed by GitHub
commit 4824de5192
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 36 additions and 1 deletions

View file

@ -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,