mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +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
|
@ -1438,6 +1438,12 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
|
|||
structure,
|
||||
wrapped: Wrapped::RecordOrSingleTagUnion,
|
||||
..
|
||||
}
|
||||
| AccessAtIndex {
|
||||
index,
|
||||
structure,
|
||||
wrapped: Wrapped::LikeARoseTree,
|
||||
..
|
||||
} => {
|
||||
// extract field from a record
|
||||
match load_symbol_and_layout(scope, structure) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue