mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Handle multi pattern unbound list rest variables
This commit is contained in:
parent
03eadc2e0f
commit
f4551978ce
4 changed files with 35 additions and 5 deletions
|
@ -1084,7 +1084,9 @@ fn from_can_pattern_help<'a>(
|
|||
list_layout,
|
||||
element_layout,
|
||||
elements: mono_patterns,
|
||||
opt_rest: patterns.opt_rest,
|
||||
opt_rest: patterns
|
||||
.opt_rest
|
||||
.map(|(i, name)| (i, name.map(|s| s.value))),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue