Handle aliases at call instead

This commit is contained in:
Agus Zubiaga 2024-08-27 02:51:23 -03:00
parent b70d48fd33
commit 80770fae11
No known key found for this signature in database
3 changed files with 126 additions and 98 deletions

View file

@ -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.add_arguments(new_args_len, var_store);
annotation.convert_to_fn(new_args_len, var_store);
}
if let Some((_var, annotation)) = self.host_exposed_annotations.get_mut(&index) {
annotation.add_arguments(new_args_len, var_store);
annotation.convert_to_fn(new_args_len, var_store);
}
self.declarations[index] = DeclarationTag::Function(function_def_index);