mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Merge remote-tracking branch 'origin/trunk' into list-empty-record
This commit is contained in:
commit
54fb482b79
29 changed files with 968 additions and 1149 deletions
|
@ -1806,8 +1806,8 @@ pub fn list_layout_from_elem<'a>(
|
|||
// If this was still a (List *) then it must have been an empty list
|
||||
Ok(Layout::Builtin(Builtin::EmptyList))
|
||||
}
|
||||
content => {
|
||||
let elem_layout = Layout::new_help(env, elem_var, content)?;
|
||||
_ => {
|
||||
let elem_layout = Layout::from_var(env, elem_var)?;
|
||||
|
||||
// This is a normal list.
|
||||
Ok(Layout::Builtin(Builtin::List(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue