Fix argument type

This commit is contained in:
Ayaz Hafiz 2023-07-07 11:37:48 -05:00
parent 1cd9deffe2
commit a123820b2b
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -11,7 +11,7 @@ use roc_mono::layout::{
use super::{
build::{function_value_by_func_spec, Env, FuncBorrowSpec, FunctionSpec, RocReturn},
convert::basic_type_from_layout,
convert::{argument_type_from_layout, basic_type_from_layout},
};
pub fn function_type<'a, 'ctx>(
@ -22,7 +22,7 @@ pub fn function_type<'a, 'ctx>(
) -> FunctionType<'ctx> {
let args = arguments
.iter()
.map(|arg| basic_type_from_layout(env, layout_interner, layout_interner.get_repr(*arg)));
.map(|arg| argument_type_from_layout(env, layout_interner, layout_interner.get_repr(*arg)));
let ret_repr = layout_interner.get_repr(return_type);
let ret = basic_type_from_layout(env, layout_interner, ret_repr);