mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +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
|
@ -374,13 +374,13 @@ impl<'a> BorrowInfState<'a> {
|
|||
self.own_args_using_bools(args, ps);
|
||||
}
|
||||
|
||||
ForeignCall(_, args) => {
|
||||
ForeignCall { arguments, .. } => {
|
||||
// very unsure what demand ForeignCall should place upon its arguments
|
||||
self.own_var(z);
|
||||
|
||||
let ps = foreign_borrow_signature(self.arena, args.len());
|
||||
let ps = foreign_borrow_signature(self.arena, arguments.len());
|
||||
|
||||
self.own_args_using_bools(args, ps);
|
||||
self.own_args_using_bools(arguments, ps);
|
||||
}
|
||||
|
||||
Literal(_) | FunctionPointer(_, _) | RuntimeErrorFunction(_) => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue