mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
use add_unknown_with
This commit is contained in:
parent
c5bd06db66
commit
925355eb4e
3 changed files with 33 additions and 8 deletions
|
@ -271,10 +271,17 @@ fn call_spec(
|
|||
} => todo!(),
|
||||
Foreign {
|
||||
foreign_symbol: _,
|
||||
ret_layout: _,
|
||||
ret_layout,
|
||||
} => {
|
||||
// NOTE foreign functions are those exposed by the platform
|
||||
todo!()
|
||||
let arguments: Vec<_> = call
|
||||
.arguments
|
||||
.iter()
|
||||
.map(|symbol| env.symbols[symbol])
|
||||
.collect();
|
||||
|
||||
let result_type = layout_spec(builder, ret_layout)?;
|
||||
|
||||
builder.add_unknown_with(block, &arguments, result_type)
|
||||
}
|
||||
LowLevel { op, update_mode } => lowlevel_spec(
|
||||
builder,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue