mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
WIP
This commit is contained in:
parent
449ec19b0f
commit
e0f5dc40cb
3 changed files with 125 additions and 100 deletions
|
@ -168,6 +168,9 @@ fn jit_to_ast_help<'a>(
|
|||
Content::Structure(FlatType::FunctionOrTagUnion(tag_name, _, _)) => {
|
||||
single_tag_union_to_ast(env, ptr, field_layouts, tag_name.clone(), &[])
|
||||
}
|
||||
Content::Structure(FlatType::Func(_, _, _)) => {
|
||||
return Err(ToAstProblem::FunctionLayout)
|
||||
}
|
||||
other => {
|
||||
unreachable!(
|
||||
"Something had a Struct layout, but instead of a Record or TagUnion type, it had: {:?}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue