mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Unify functions fx vars
This commit is contained in:
parent
5a5abe3bc5
commit
7776883262
26 changed files with 222 additions and 70 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue