mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
special-case rose tree field access
This commit is contained in:
parent
a1231058da
commit
11ed2cbcf8
5 changed files with 14 additions and 3 deletions
|
@ -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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue