mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Set.walk closure trouble
This commit is contained in:
parent
35e1e94a94
commit
9527434be8
3 changed files with 111 additions and 22 deletions
|
@ -5933,12 +5933,6 @@ fn call_by_name<'a>(
|
|||
None if assigned.module_id() != proc_name.module_id() => {
|
||||
add_needed_external(procs, env, original_fn_var, proc_name);
|
||||
|
||||
debug_assert_eq!(
|
||||
arg_layouts.len(),
|
||||
field_symbols.len(),
|
||||
"scroll up a bit for background"
|
||||
);
|
||||
|
||||
let call = if proc_name.module_id() == ModuleId::ATTR {
|
||||
// the callable is one of the ATTR::ARG_n symbols
|
||||
// we must call those by-pointer
|
||||
|
@ -5952,6 +5946,12 @@ fn call_by_name<'a>(
|
|||
arguments: field_symbols,
|
||||
}
|
||||
} else {
|
||||
debug_assert_eq!(
|
||||
arg_layouts.len(),
|
||||
field_symbols.len(),
|
||||
"scroll up a bit for background {:?}",
|
||||
proc_name
|
||||
);
|
||||
self::Call {
|
||||
call_type: CallType::ByName {
|
||||
name: proc_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue