mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
generate signature for foreign symbols
This commit is contained in:
parent
4b8392696e
commit
a6e39e66f1
8 changed files with 75 additions and 31 deletions
|
@ -2309,7 +2309,7 @@ fn fabricate_host_exposed_def<'a>(
|
|||
match annotation.typ.shallow_dealias() {
|
||||
Type::Function(args, _, _) => {
|
||||
for i in 0..args.len() {
|
||||
let name = format!("closure_arg_{}", i);
|
||||
let name = format!("closure_arg_{}_{}", ident, i);
|
||||
|
||||
let arg_symbol = {
|
||||
let ident = name.clone().into();
|
||||
|
@ -2343,7 +2343,7 @@ fn fabricate_host_exposed_def<'a>(
|
|||
};
|
||||
|
||||
let effect_closure_symbol = {
|
||||
let name = "effect_closure";
|
||||
let name = format!("effect_closure_{}", ident);
|
||||
|
||||
let ident = name.clone().into();
|
||||
scope
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue