mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
remove MultiTagUnion
This commit is contained in:
parent
8a36c20559
commit
65f4ff9663
4 changed files with 7 additions and 25 deletions
|
@ -900,17 +900,6 @@ fn expr_spec(
|
|||
let result_type = layout_spec(builder, layout)?;
|
||||
builder.add_unknown_with(block, &[value_id], result_type)
|
||||
}
|
||||
Wrapped::MultiTagUnion => {
|
||||
// Clearly this is not generally correct, but it should be for our examples
|
||||
// let hacky_is_recursive = field_layouts.iter().any(|l| l == &Layout::RecursivePointer);
|
||||
// if hacky_is_recursive {
|
||||
|
||||
// we don't know what constructor we are at this point, so how can we get a
|
||||
// field from an enum value?
|
||||
|
||||
let result_type = layout_spec(builder, layout)?;
|
||||
builder.add_unknown_with(block, &[value_id], result_type)
|
||||
}
|
||||
}
|
||||
}
|
||||
Array { elem_layout, elems } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue