mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
remove empty layout types (list,str,dict,set)
This commit is contained in:
parent
8d668514e4
commit
a1fd34feef
11 changed files with 94 additions and 296 deletions
|
@ -3562,7 +3562,12 @@ pub fn with_hole<'a>(
|
|||
}
|
||||
Err(LayoutProblem::UnresolvedTypeVar(_)) => {
|
||||
let expr = Expr::EmptyArray;
|
||||
Stmt::Let(assigned, expr, Layout::Builtin(Builtin::EmptyList), hole)
|
||||
Stmt::Let(
|
||||
assigned,
|
||||
expr,
|
||||
Layout::Builtin(Builtin::List(&Layout::VOID)),
|
||||
hole,
|
||||
)
|
||||
}
|
||||
Err(LayoutProblem::Erroneous) => panic!("list element is error type"),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue