mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Lower params when calling imported functions
This commit is contained in:
parent
7a8b9f7d6d
commit
97ddae7e3d
8 changed files with 181 additions and 1 deletions
|
@ -5032,7 +5032,7 @@ fn canonicalize_and_constrain<'a>(
|
|||
|
||||
let mut var_store = VarStore::default();
|
||||
|
||||
let module_output = canonicalize_module_defs(
|
||||
let mut module_output = canonicalize_module_defs(
|
||||
arena,
|
||||
parsed_defs,
|
||||
&header_type,
|
||||
|
@ -5091,6 +5091,13 @@ fn canonicalize_and_constrain<'a>(
|
|||
// _before has an underscore because it's unused in --release builds
|
||||
let _before = roc_types::types::get_type_clone_count();
|
||||
|
||||
// lower module params
|
||||
roc_lower_params::lower(
|
||||
module_output.params_pattern.clone(),
|
||||
&mut module_output.declarations,
|
||||
&mut var_store,
|
||||
);
|
||||
|
||||
let mut constraints = Constraints::new();
|
||||
|
||||
let constraint = if skip_constraint_gen {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue