mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Constrain function annotation fx to body
This commit is contained in:
parent
b9b85a222f
commit
7af05cc6c9
10 changed files with 102 additions and 87 deletions
|
@ -56,7 +56,7 @@ fn constrain_params(
|
|||
home,
|
||||
rigids: MutMap::default(),
|
||||
resolutions_to_make: vec![],
|
||||
fn_fx_var: None,
|
||||
enclosing_fx: None,
|
||||
};
|
||||
|
||||
let index = constraints.push_variable(module_params.whole_var);
|
||||
|
@ -115,7 +115,7 @@ fn constrain_symbols_from_requires(
|
|||
home,
|
||||
rigids,
|
||||
resolutions_to_make: vec![],
|
||||
fn_fx_var: None,
|
||||
enclosing_fx: None,
|
||||
};
|
||||
let pattern = Loc::at_zero(roc_can::pattern::Pattern::Identifier(loc_symbol.value));
|
||||
|
||||
|
@ -183,7 +183,7 @@ pub fn frontload_ability_constraints(
|
|||
home,
|
||||
rigids,
|
||||
resolutions_to_make: vec![],
|
||||
fn_fx_var: None,
|
||||
enclosing_fx: None,
|
||||
};
|
||||
let pattern = Loc::at_zero(roc_can::pattern::Pattern::Identifier(*member_name));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue