mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Handle simple aliased fn in params value def
This commit is contained in:
parent
6cffe9b1db
commit
36df43fadc
6 changed files with 77 additions and 29 deletions
|
@ -3135,11 +3135,11 @@ impl Declarations {
|
|||
Index::push_new(&mut self.function_bodies, loc_function_def);
|
||||
|
||||
if let Some(annotation) = &mut self.annotations[index] {
|
||||
annotation.convert_to_fn(new_args_len, var_store);
|
||||
annotation.add_arguments(new_args_len, var_store);
|
||||
}
|
||||
|
||||
if let Some((_var, annotation)) = self.host_exposed_annotations.get_mut(&index) {
|
||||
annotation.convert_to_fn(new_args_len, var_store);
|
||||
annotation.add_arguments(new_args_len, var_store);
|
||||
}
|
||||
|
||||
self.declarations[index] = DeclarationTag::Function(function_def_index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue