mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +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
|
@ -597,7 +597,7 @@ fn to_relevant_branch_help<'a>(
|
|||
start.extend(end);
|
||||
}
|
||||
}
|
||||
Wrapped::RecordOrSingleTagUnion => {
|
||||
Wrapped::RecordOrSingleTagUnion | Wrapped::LikeARoseTree => {
|
||||
let sub_positions = arguments.into_iter().enumerate().map(
|
||||
|(index, (pattern, _))| {
|
||||
let mut new_path = path.to_vec();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue