This commit is contained in:
Folkert 2021-06-19 00:34:22 +02:00
parent 449ec19b0f
commit e0f5dc40cb
3 changed files with 125 additions and 100 deletions

View file

@ -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: {:?}",