special-case rose tree field access

This commit is contained in:
Folkert 2021-06-16 23:16:14 +02:00
parent a1231058da
commit 11ed2cbcf8
5 changed files with 14 additions and 3 deletions

View file

@ -880,6 +880,10 @@ fn expr_spec(
Wrapped::RecordOrSingleTagUnion => {
builder.add_get_tuple_field(block, value_id, *index as u32)
}
Wrapped::LikeARoseTree => {
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 =