Unify functions fx vars

This commit is contained in:
Agus Zubiaga 2024-10-08 20:59:10 -03:00
parent 5a5abe3bc5
commit 7776883262
No known key found for this signature in database
26 changed files with 222 additions and 70 deletions

View file

@ -416,9 +416,8 @@ pub(crate) fn type_to_var_help(
let fx_var = helper!(fx_type);
let closure_var =
helper!(closure_type, AmbientFunctionPolicy::Function(destination));
// [purity-inference] TODO: add fx_type to FlatType::Func
let content =
Content::Structure(FlatType::Func(new_arguments, closure_var, ret_var));
Content::Structure(FlatType::Func(new_arguments, closure_var, ret_var, fx_var));
env.register_with_known_var(destination, rank, content)
}