mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Try an alloca approach for structs
This commit is contained in:
parent
3789402a32
commit
8450597a07
7 changed files with 153 additions and 42 deletions
|
@ -367,7 +367,7 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
|
||||
// isEmpty : List * -> Bool
|
||||
add_type(
|
||||
Symbol::LIST_ISEMPTY,
|
||||
Symbol::LIST_IS_EMPTY,
|
||||
SolvedType::Func(
|
||||
vec![SolvedType::Apply(
|
||||
Symbol::LIST_LIST,
|
||||
|
@ -442,9 +442,9 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
),
|
||||
);
|
||||
|
||||
// length : List a -> Int
|
||||
// len : List * -> Int
|
||||
add_type(
|
||||
Symbol::LIST_LENGTH,
|
||||
Symbol::LIST_LEN,
|
||||
SolvedType::Func(vec![list_type(flex(TVAR1))], Box::new(int_type())),
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue